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
|
FROM python:3.11.6-slim
|
||||||
|
|
||||||
# set work directory
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# set env variables
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
ENV PYTHONDONTWRITEBYTECODE 1
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update && \
|
||||||
RUN apt-get install -y python3-dev gcc libc-dev libffi-dev
|
apt-get install -y python3-dev gcc libc-dev libffi-dev && \
|
||||||
RUN apt-get -y install libpq-dev gcc
|
apt-get -y install libpq-dev gcc
|
||||||
|
|
||||||
# install dependencies
|
|
||||||
COPY src/requirements.txt .
|
COPY src/requirements.txt .
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip && \
|
||||||
RUN pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
# copy project
|
|
||||||
COPY src/. .
|
COPY src/. .
|
Loading…
Reference in New Issue
Block a user