23 lines
416 B
Docker
23 lines
416 B
Docker
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"]
|