From 24d6c3008f4aef37eb9d6dae25a378e880d95286 Mon Sep 17 00:00:00 2001 From: Enrico Ludwig Date: Tue, 6 Aug 2024 21:30:36 +0200 Subject: [PATCH] Finished Dockerfile --- gitea/auto_mapper/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gitea/auto_mapper/Dockerfile b/gitea/auto_mapper/Dockerfile index 71f6b29..e8a8c75 100644 --- a/gitea/auto_mapper/Dockerfile +++ b/gitea/auto_mapper/Dockerfile @@ -1,15 +1,16 @@ # Use a Python base image -FROM python:3.9 +FROM python:3.9 AS zn-gitea-auto_mapper # Set the working directory WORKDIR /app -# Copy the Python file and .env file to the working directory +# Copy the Python file, .env file, and requirements.txt to the working directory COPY auto_mapper.py . COPY .env . +COPY requirements.txt . # Install dependencies -RUN pip install --no-cache-dir python-dotenv +RUN pip install --no-cache-dir -r requirements.txt # Run the Python file CMD ["python", "auto_mapper.py"] \ No newline at end of file