From 50077bce5949c216c02574006193505434db9ce0 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Thu, 29 Apr 2021 16:34:38 -0800 Subject: [PATCH] cleanup --- docker/Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 532dbfe74..6666219b4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -6,12 +6,13 @@ RUN npm install COPY ./frontend/ . RUN npm run build -# run + FROM python:3.9-slim-buster ENV PRODUCTION true ENV POETRY_VERSION 1.1.6 + RUN apt-get update && apt-get install -y --no-install-recommends \ gcc g++ \ curl \ @@ -29,17 +30,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && apt-get remove -y curl apt-transport-https debian-keyring g++ gnupg gnupg2 gnupg1 -RUN pip install --no-cache-dir "poetry==$POETRY_VERSION" \ - && poetry config virtualenvs.create false - #! Future - # pip install --no-cache-dir "psycopg2-binary==2.8.6" +RUN pip install --no-cache-dir "poetry==$POETRY_VERSION" + +#! Future +# pip install --no-cache-dir "psycopg2-binary==2.8.6" -# project dependencies WORKDIR /app COPY pyproject.toml /app/ COPY ./mealie /app/mealie -RUN poetry install --no-dev +RUN poetry config virtualenvs.create false \ + && poetry install --no-dev #! Future # COPY ./alembic /app