forked from 1in9e/gosint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (23 loc) · 883 Bytes
/
Dockerfile
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
FROM python:3.8-alpine
LABEL maintainer="_lin9e <[email protected]>"
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
&& apk update \
&& apk add mariadb-dev build-base \
g bash make gcc\
libffi-dev python3-dev \
supervisor
RUN apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
RUN mkdir /app
WORKDIR /app
ADD ./requirements.txt /app
COPY ./thirdparty/simplepro-3.3.2.tar.gz /tmp
RUN pip install -U pip -i https://pypi.douban.com/simple
RUN pip install -r requirements.txt -i https://pypi.douban.com/simple
RUN pip install /tmp/simplepro-3.3.2.tar.gz
ADD docker-entrypoint.sh /docker-entrypoint.sh
ADD ./thirdparty/wait-for-it.sh /wait-for-it.sh
RUN chmod x /docker-entrypoint.sh
RUN chmod x /wait-for-it.sh
WORKDIR /app
ENTRYPOINT [ "/docker-entrypoint.sh"]