forked from zmid26/project_461
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 750 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (28 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu
#Check for Ubuntu update, Install Sudo
RUN apt-get update && \
apt-get install -y \
build-essential \
curl
#Install Sudo and Git
RUN apt-get -y install sudo
RUN sudo apt-get -y install git
RUN sudo apt -y install nodejs npm
#Install Python and Rust
RUN apt-get install -y python3 python3-pip
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
EXPOSE 8080
WORKDIR /usr/src/app
COPY . .
RUN ./run install
ENV GIT_PYTHON_REFRESH=quiet
# Probably needs to be revisited
ENV GITHUB_TOKEN=${GITHUB_TOKEN}
ENV SQL_LINK=${SQL_LINK}
ENV SQL_USER=${SQL_USER}
ENV SQL_PASSWORD=${SQL_PASSWORD}
ENV SQL_DB="461-database"
RUN ./run build
# CMD ./run showscore ShortSample.txt
CMD python3 app.py