configure for building worker within a docker image

This commit is contained in:
2024-06-27 12:26:23 +02:00
parent 75ac2587a0
commit 04c4709c84
3 changed files with 79 additions and 19 deletions

17
pythonProject/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# Set base Python image version
FROM python:3.10-alpine
# Set working directory
WORKDIR /app
# Copy requirements.txt to the Docker container
COPY requirements.txt .
# Install required Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your app's source code
COPY . .
# Command to run the worker.py script
CMD ["python", "./worker.py"]