Add a Docker environment
This commit is contained in:
parent
9e43cee86c
commit
3aea6dd8e7
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
FROM python:3.7.2
|
||||||
|
|
||||||
|
EXPOSE 5000
|
||||||
|
VOLUME /app
|
||||||
|
|
||||||
|
RUN pip install pipenv
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
ADD Pipfile .
|
||||||
|
ADD Pipfile.lock .
|
||||||
|
RUN pipenv install --system --deploy --ignore-pipfile --verbose
|
||||||
|
|
||||||
|
ENV AUTOPILOT_USERNAME ""
|
||||||
|
ENV AUTOPILOT_PASSWORD ""
|
||||||
|
ENV AUTOPILOT_USER_ID -1
|
||||||
|
|
||||||
|
ADD ./autopilot /app/autopilot
|
||||||
|
|
||||||
|
CMD ["uwsgi", "--http", "0.0.0.0:5000", \
|
||||||
|
"--protocol", "uwsgi", \
|
||||||
|
"--wsgi", "autopilot.app:app"]
|
Loading…
x
Reference in New Issue
Block a user