Parend Dockerfile for Selene services and APIs

pull/1/head
Chris Veilleux 2018-08-22 22:10:43 -05:00
parent 6930166924
commit dc36d12d61
1 changed files with 26 additions and 0 deletions

26
shared/Dockerfile Normal file
View File

@ -0,0 +1,26 @@
# Parent dockerfile for all Selene services and APIs
#
# This Dockerfile contains the steps that are common to building all the
# docker images for the Selene backend to Mycroft
FROM python:3.7
LABEL maintainer="Mycroft AI <devops@mycroft.ai>"
# Install the software required for this image
RUN pip install pipenv
# Copy the applicaction code to the image
COPY selene_util /opt/selene/selene_util
WORKDIR /opt/selene/
# Use pipenv to install the dependencies for selene-util
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. This makes way for the
# pepenv to use these files to install dependencies for the Selene services
# or applications that will use this Docker config
RUN rm /opt/selene/Pipfile
RUN rm /opt/selene/Pipfile.lock