update: dockerfile

This commit is contained in:
Павел Лопатин 2024-08-12 22:27:12 +03:00
parent e817baab55
commit a9d4ea5790

View File

@ -1,19 +1,16 @@
FROM python:3.11.6-slim
# set work directory
WORKDIR /app
# set env variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN apt-get update
RUN apt-get install -y python3-dev gcc libc-dev libffi-dev
RUN apt-get -y install libpq-dev gcc
RUN apt-get update && \
apt-get install -y python3-dev gcc libc-dev libffi-dev && \
apt-get -y install libpq-dev gcc
# install dependencies
COPY src/requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# copy project
RUN pip install --upgrade pip && \
pip install -r requirements.txt
COPY src/. .