sign-pdf-worker/pythonProject/Dockerfile
Julien Fastré c7a6283e00
All checks were successful
Build image and push it to registry / build (push) Successful in 1m59s
Add timezone configuration to Dockerfile
Included tzdata package and set the timezone to Europe/Paris by creating a symbolic link in /etc/localtime. This ensures the container runs with the correct timezone settings.
2024-11-06 14:46:45 +01:00

24 lines
508 B
Docker

# Set base Python image version
FROM python:3.10-alpine
# Set working directory
WORKDIR /app
# add required clis
RUN apk add --no-cache openssl tzdata
# set timezone
RUN ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
# 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"]