27 lines
540 B
Docker
27 lines
540 B
Docker
#our base image
|
|
FROM python:3.14
|
|
LABEL Erik Thiele, ethiele@teamthiele.de
|
|
|
|
# install Python modules with PIP needed by the Python app
|
|
COPY requirements.txt /tmp/requirements.txt
|
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
|
|
|
# create Directory /app
|
|
RUN mkdir app
|
|
|
|
# copy files required for the app to run
|
|
COPY runserver.py /app
|
|
COPY code.txt /app
|
|
|
|
ADD GirlsDayPython /app/GirlsDayPython
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
# tell the port number the container should exposeust
|
|
EXPOSE 5555
|
|
|
|
# run the application
|
|
CMD ["python", "/app/runserver.py"]
|
|
|