forked from HXLStandard/hxl-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (30 loc) · 894 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
29
30
31
32
33
34
FROM unocha/alpine-base-s6-python3:3.8
WORKDIR /srv/www
COPY . .
RUN apk update && \
apk upgrade && \
apk add \
sqlite && \
mkdir -p \
/etc/services.d/hxl \
/srv/db \
/srv/cache \
/srv/config \
/srv/output \
/var/log/proxy && \
mv config.py.TEMPLATE docker_files/config.py docker_files/gunicorn.py hxl_proxy/schema-mysql.sql hxl_proxy/schema-sqlite3.sql /srv/config/ && \
mv docker_files/hxl_run /etc/services.d/hxl/run && \
mv docker_files/app.py . && \
pip3 install --upgrade \
gunicorn && \
pip3 install --upgrade -r requirements.txt && \
pip3 install newrelic && \
apk add --virtual .gevent-deps \
build-base \
python3-dev && \
pip3 install gevent && \
apk del \
.gevent-deps && \
rm -rf /root/.cache && \
rm -rf /var/cache/apk/*
EXPOSE 5000