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.
25 lines
633 B
25 lines
633 B
FROM python:3.6-slim-stretch
|
|
MAINTAINER Drew Short <warrick@sothr.com>
|
|
|
|
ENV ATHENEUM_APP_DIRECTORY /opt/atheneum
|
|
ENV ATHENEUM_CONFIG_DIRECTORY /srv/atheneum/config
|
|
ENV ATHENEUM_DATA_DIRECTORY /srv/atheneum/data
|
|
|
|
RUN mkdir -p ${ATHENEUM_APP_DIRECTORY} \
|
|
&& mkdir -p ${ATHENEUM_CONFIG_DIRECTORY} \
|
|
&& mkdir -p ${ATHENEUM_DATA_DIRECTORY} \
|
|
&& pip install pipenv gunicorn
|
|
|
|
VOLUME ${ATHENEUM_CONFIG_DIRECTORY}
|
|
VOLUME ${ATHENEUM_DATA_DIRECTORY}
|
|
|
|
COPY ./ ${ATHENEUM_APP_DIRECTORY}/
|
|
|
|
RUN cd ${ATHENEUM_APP_DIRECTORY} \
|
|
&& pipenv install --system --deploy --ignore-pipfile
|
|
|
|
EXPOSE 8080
|
|
|
|
WORKDIR ${ATHENEUM_APP_DIRECTORY}
|
|
|
|
CMD ./entrypoint.sh
|