You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
346 B
18 lines
346 B
FROM python:3.7
|
|
|
|
MAINTAINER Drew Short <warrick@sothr.com>
|
|
|
|
RUN mkdir /srv/portal /srv/portal/data
|
|
|
|
ENV APP_DATA_DIRECTORY=/srv/portal/data
|
|
|
|
VOLUME /srv/portal/data
|
|
|
|
WORKDIR /srv/portal
|
|
|
|
CMD ["gunicorn", "-b", "0.0.0.0:8080", "app:app"]
|
|
|
|
COPY . /srv/portal
|
|
RUN cd /srv/portal \
|
|
&& pip install -r requirements.txt \
|
|
&& pip install gunicorn
|