|
@@ -4,16 +4,16 @@ LABEL authors="nikita.babich"
|
|
|
WORKDIR /app
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
RUN apt-get update
|
|
|
-RUN apt-get install -y --no-install-recommend python3 python3-pip python3-venv ca-certificates
|
|
|
|
|
|
|
+RUN apt-get install -y --no-install-recommends python3 python3-pip python3-venv ca-certificates python3-full
|
|
|
RUN rm -rf /var/lib/apt/lists/
|
|
RUN rm -rf /var/lib/apt/lists/
|
|
|
-
|
|
|
|
|
RUN ln -sf /usr/bin/python3 /usr/local/bin/python
|
|
RUN ln -sf /usr/bin/python3 /usr/local/bin/python
|
|
|
-
|
|
|
|
|
COPY requirements.txt .
|
|
COPY requirements.txt .
|
|
|
-RUN pip3 install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
+RUN python3 -m venv .venv
|
|
|
|
|
+RUN . .venv/bin/activate
|
|
|
|
|
+RUN .venv/bin/pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
COPY . .
|
|
COPY . .
|
|
|
|
|
|
|
|
EXPOSE 8888
|
|
EXPOSE 8888
|
|
|
|
|
|
|
|
-CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:8888", "app.app"]
|
|
|
|
|
|
|
+CMD [".venv/bin/gunicorn", "-w", "2", "-b", "0.0.0.0:8888", "app.app:app"]
|