Dockerize opaque flask app with docker-compose – first step

This commit is contained in:
Stephan Porada
2019-09-04 14:51:46 +02:00
parent c6184976b8
commit f8bee3553d
4 changed files with 36 additions and 1 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
# pull official base image
FROM python:3.6.9
# set environment varibles
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# set work directory
WORKDIR /opaque
# Copy the current directory contents into the container at /daemon
COPY . /opaque
# Install requirements
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# set permissions for entrypoint
RUN chmod a+x flask-entrypoint.sh