Files
kontor/bottle-docker/app/Dockerfile
T

20 lines
462 B
Docker

# set base image (host OS)
FROM python:3.8
# set the working directory in the container
WORKDIR /code
# copy the dependencies file to the working directory
COPY requirements.txt /code/
# copy the content of the local src directory to the working directory
COPY src/ /code/
# install dependencies
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
EXPOSE 9000
# command to run on container start
CMD [ "python", "./kontor.py" ]