avtopost.kultmost.ru/Dockerfile

32 lines
816 B
Docker

# Use the official Python image from the Docker Hub
FROM registry.spiritofweb.ru/python:3.13-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file to the container
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
COPY static/ ./static/
COPY templates/ ./templates/
# Copy the entire application code to the container
COPY main.py main.py
COPY db.py db.py
COPY vk.py vk.py
COPY auth.py auth.py
COPY models.py models.py
COPY roles.py roles.py
COPY config.py config.py
COPY utils.py utils.py
COPY token_manager.py token_manager.py
COPY certs.pem certs.pem
COPY templates.py templates.py
COPY email_task.py email_task.py
COPY tg.py tg.py
COPY images.py images.py
COPY delivery_router.py delivery_router.py
COPY tasks.py tasks.py