nyipyatki/backend/Dockerfile
tylen 7118bb2c5b backend: add db initializer logic
- Add some logging to DB Client

Create a db initializer #4
2025-09-11 23:55:18 +03:00

20 lines
428 B
Docker

FROM python:3.13-slim-bookworm
# Set the PYTHONPATH environment variable
ENV PYTHONPATH=/usr/local/lib
# Set the working directory
WORKDIR /app
# Copy only the requirements file first
COPY requirements.txt requirements.txt
# Install dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Set the command to run your application
CMD ["/bin/sh", "entrypoint.sh"]