ChamplainTechJournals/sysadmin-ii-sys265/docker_proj1/Dockerfile
2025-04-19 23:42:08 -04:00

15 lines
391 B
Docker

# use this version of python
FROM python:3.12-slim
# create a working directory and copy requirements file to it
WORKDIR /app
COPY app/requirements.txt /app/requirements.txt
# install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# copy the rest of the files to working directory
COPY app /app
# run the python script when the container starts
CMD ["python", "app.py"]