update: dockerfile
This commit is contained in:
parent
e817baab55
commit
a9d4ea5790
15
Dockerfile
15
Dockerfile
@ -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/. .
|
Loading…
Reference in New Issue
Block a user