diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a1402d6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# this is my base image +FROM alpine:3.5 + +# Install python and pip +RUN apk add --update py2-pip + +# install Python modules needed by the Python app +COPY requirements.txt /usr/src/app/ +RUN pip install --no-cache-dir -r /usr/src/app/requirements.txt + +# copy files required for the app to run +COPY app.py /usr/src/app/ +COPY templates/index.html /usr/src/app/templates/ + +# tell the port number the container should expose +EXPOSE 5000 + +# run the application +CMD ["python", "/usr/src/app/app.py"]