-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.train
More file actions
44 lines (34 loc) · 1.1 KB
/
Dockerfile.train
File metadata and controls
44 lines (34 loc) · 1.1 KB
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
38
39
40
41
42
43
44
FROM python:3
ARG GITHUB_PERSONAL_ACCESS_TOKEN
ARG AWS_ACCESS_KEY_ID
ARG AWS_SECRET_ACCESS_KEY
ARG ENVIRONMENT=prod
RUN apt-get update
RUN apt-get install -y zip
#RUN apt-get install -y \
# apt-transport-https \
# ca-certificates \
# curl \
# gnupg2 \
# software-properties-common
#RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
#RUN apt-key fingerprint 0EBFCD88
#RUN add-apt-repository \
# "deb [arch=amd64] https://download.docker.com/linux/debian \
# $(lsb_release -cs) \
# stable"
#RUN apt-get --fix-broken update
#RUN apt-get install docker-ce docker-ce-cli containerd.io
#RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
#RUN apt-get install -y nodejs
#RUN curl -fsSL https://get.docker.com -o get-docker.sh
#RUN sh get-docker.sh
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN ENVIRONMENT=$ENVIRONMENT bash scripts/install.sh
#RUN npm install -g serverless
EXPOSE 8888
ENTRYPOINT [ "bash" ]
CMD [ "-c", "jupyter notebook notebooks/ --allow-root --ip=0.0.0.0 --port=8888 --no-browser" ]