-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 753 Bytes
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
FROM python:3.8.0-alpine3.10
LABEL maintainer.label="yumenomatayume"
ENV HOSTNAME="keywoo" \
APP="/opt/keywoo" \
PS1="[\u@\h \W]# "
WORKDIR ${APP}
COPY ["requirements.txt", "${APP}/requirements.txt"]
RUN apk update && \
apk add --no-cache gcc build-base linux-headers postgresql-libs && \
apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev
RUN pip install -U pip && \
pip install -U setuptools && \
pip install -r requirements.txt --no-cache-dir
RUN apk --purge del .build-deps
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.3/wait /wait
RUN chmod +x /wait
COPY [".", "${APP}"]
ENV FLASK_APP="${APP}/run.py"
EXPOSE 5000
ENTRYPOINT [ "sh", "-c" ]
CMD ["/wait && ${APP}/run.sh"]