template-backend/Dockerfile

16 lines
331 B
Docker
Raw Normal View History

2024-08-12 19:22:51 +00:00
FROM python:3.11.6-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
2024-08-12 19:27:12 +00:00
RUN apt-get update && \
apt-get install -y python3-dev gcc libc-dev libffi-dev && \
apt-get -y install libpq-dev gcc
2024-08-12 19:22:51 +00:00
COPY src/requirements.txt .
2024-08-12 19:27:12 +00:00
RUN pip install --upgrade pip && \
pip install -r requirements.txt
2024-08-12 19:22:51 +00:00
COPY src/. .