first cut at a Dockerfile to build an image for the skill service

pull/1/head
Chris Veilleux 2018-08-22 22:26:25 -05:00
parent 7387aaab6f
commit 9670842f86
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# Docker config for the Selene skill service
# The selene-shared parent image contains all the common Docker configs for
# all Selene apps and services see the "shared" directory in this repository.
FROM selene-shared:latest
LABEL description="Run the Selene skill service"
# Configuration files for the software loaded in this image.
COPY config /opt/selene/config
RUN mkdir -p /var/log/gunicorn/
RUN mkdir -p /var/log/gunicorn/
# Load the skill service application to the image
COPY skill_service /opt/selene/skill_service
WORKDIR /opt/selene/
# Use pipenv to install the package's dependencies in the container
COPY Pipfile Pipfile
COPY Pipfile.lock Pipfile.lock
RUN pipenv install --system
# Now that pipenv has installed all the packages required by selene-util
# the Pipfile can be removed from the container.
RUN rm /opt/selene/Pipfile
RUN rm /opt/selene/Pipfile.lock
EXPOSE 5200
ENTRYPOINT ["gunicorn", "--config=/opt/selene/config/gunicorn_config.py", "skill_service.api.api:skill"]