2018-08-23 03:26:25 +00:00
|
|
|
# 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.
|
2018-09-03 16:02:39 +00:00
|
|
|
FROM docker.mycroft.ai/selene-shared:latest
|
2018-08-30 01:31:46 +00:00
|
|
|
LABEL description="Selene Skill Service API"
|
2018-08-23 03:26:25 +00:00
|
|
|
|
|
|
|
# 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.
|
2018-09-13 21:57:33 +00:00
|
|
|
RUN rm Pipfile
|
|
|
|
RUN rm Pipfile.lock
|
|
|
|
|
|
|
|
# Load the skill service application to the image
|
|
|
|
COPY skill_service /opt/selene/skill_service
|
|
|
|
WORKDIR /opt/selene/
|
2018-08-23 03:26:25 +00:00
|
|
|
|
2018-09-10 05:09:45 +00:00
|
|
|
EXPOSE 7100
|
2018-08-23 03:26:25 +00:00
|
|
|
|
2018-09-08 00:06:46 +00:00
|
|
|
# Use uwsgi to serve the API
|
|
|
|
COPY uwsgi.ini uwsgi.ini
|
2018-09-07 23:41:00 +00:00
|
|
|
ENTRYPOINT ["uwsgi", "--ini", "uwsgi.ini"]
|