From 2c8051bfcedc98a6924c55aa8115a5c4c67994e8 Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Tue, 4 Sep 2018 23:09:04 -0500 Subject: [PATCH] added Dockerfile for marketplace API --- market/backend/v1/market-api/Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 market/backend/v1/market-api/Dockerfile diff --git a/market/backend/v1/market-api/Dockerfile b/market/backend/v1/market-api/Dockerfile new file mode 100644 index 00000000..e573d367 --- /dev/null +++ b/market/backend/v1/market-api/Dockerfile @@ -0,0 +1,25 @@ +# 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 API for the Mycroft marketplace" + +# Load the skill service application to the image +COPY market_api /opt/selene/market_api +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 5202 + +# Use gunicorn to serve the API +ENTRYPOINT ["gunicorn", "--bind=0.0.0.0:5002", "market_api.api:marketplace"]