-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (17 loc) · 652 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:18.04
ENV FLASK_APP run.py
ADD ./docker_config/sources.list /etc/apt/
ADD ./docker_config/localtime /etc/localtime
ADD ./docker_config/init.sh /tmp/
ADD ./docker_config/H.sql /tmp/
ADD run.py /app/
ADD requirements.txt /app/
ADD config.py /app/
ADD config.ini /app/
COPY app /app/app/
RUN apt-get clean && apt-get update
RUN apt-get install -y openjdk-8-jre openjdk-8-jdk vim python3 python3-pip nmap erlang-nox mariadb-server language-pack-zh-hans fontconfig chromium-browser --fix-missing\
&& pip3 install -i https://pypi.douban.com/simple/ -r /app/requirements.txt \
&& chmod +x /tmp/init.sh
EXPOSE 5005
CMD ["/tmp/init.sh"]