2024-06-27 10:26:23 +00:00
|
|
|
# Set base Python image version
|
|
|
|
FROM python:3.10-alpine
|
|
|
|
|
|
|
|
# Set working directory
|
|
|
|
WORKDIR /app
|
|
|
|
|
2024-10-11 14:19:32 +00:00
|
|
|
# add required clis
|
2024-11-06 13:46:45 +00:00
|
|
|
RUN apk add --no-cache openssl tzdata
|
|
|
|
|
|
|
|
# set timezone
|
|
|
|
RUN ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
|
2024-10-11 14:19:32 +00:00
|
|
|
|
2024-06-27 10:26:23 +00:00
|
|
|
# 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"]
|