24 lines
580 B
Docker
24 lines
580 B
Docker
# Set base Python image version
|
|
FROM python:3.10-alpine@sha256:8ca9f9d0f4df2af674092e7e9d79ce7985e783cecfe070f8ea850801b6520bf7
|
|
|
|
# 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"]
|