R
Size: a a a
R
С
R
R
R
С
python -m venv venv
и др. делал?A
A
R
FROM python:3.7-alpine
RUN mkdir /var/www
WORKDIR /var/www
RUN apk update && \
apk add \
python3-dev \
git \
build-base \
linux-headers
RUN \
apk add --no-cache postgresql-libs && \
apk add --no-cache --virtual .build-deps musl-dev postgresql-dev
RUN pip3 install -U pip setuptools && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN pip install gunicorn
COPY . .
EXPOSE 5000
A
A
A
A
A
FROM python:3.7-alpine
RUN mkdir /var/www
WORKDIR /var/www
RUN apk update && \
apk add \
python3-dev \
git \
build-base \
linux-headers
RUN \
apk add --no-cache postgresql-libs && \
apk add --no-cache --virtual .build-deps musl-dev postgresql-dev
RUN pip3 install -U pip setuptools && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN pip install gunicorn
COPY . .
EXPOSE 5000
A
CMD ["gunicorn" , "-b", "0.0.0.0:8000", "app:app"]
A
A
DA