16 lines
229 B
Text
16 lines
229 B
Text
|
FROM python:alpine
|
||
|
|
||
|
RUN apk update && apk add redis su-exec \
|
||
|
&& pip3 install pipenv
|
||
|
|
||
|
COPY . /app
|
||
|
WORKDIR /app
|
||
|
|
||
|
ENV FLASK_APP=netclock.py
|
||
|
ENV FLASK_ENV=production
|
||
|
|
||
|
RUN pipenv install
|
||
|
|
||
|
EXPOSE 5000
|
||
|
ENTRYPOINT ["./entrypoint.sh"]
|