-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 1.13 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
FROM hansroh/aws
ARG DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
LABEL title="Skitai Package Group Development"
LABEL author="hansroh"
LABEL version="1.0"
RUN apt update
RUN apt install -y python3-pip
RUN pip3 install -U pip
RUN pip3 install -U django psycopg2-binary
COPY benchmark/requirements.txt /requirements.txt
RUN pip3 install -Ur /requirements.txt && rm -f /requirements.txt
COPY tests/requirements.txt /requirements.txt
RUN pip3 install -Ur /requirements.txt && rm -f /requirements.txt
RUN pip3 install -U grpcio tensorflow-cpu==2.3.0 keras==2.3.0
RUN pip3 install -U twine keyrings.alt
# install selenium --------------------
RUN apt update && apt install -y wget gnupg unzip curl
RUN echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list
RUN wget https://dl.google.com/linux/linux_signing_key.pub; \
apt-key add linux_signing_key.pub; \
rm linux_signing_key.pub
RUN apt update && apt install -y google-chrome-stable
RUN pip3 install -U chromedriver-autoinstaller selenium lxml cssselect html5lib pytest requests
WORKDIR /home/ubuntu/libs/skitai
EXPOSE 5000
CMD [ "/bin/bash" ]