refactor(build): remove dependencies in production

This commit is contained in:
VD 2021-02-02 10:20:08 +01:00
parent 25afe4831c
commit d6504b7e13
No known key found for this signature in database
GPG Key ID: F78599456357BE3A
1 changed files with 1 additions and 4 deletions

View File

@ -7,16 +7,13 @@ RUN cd /code/static && npm install
# Main image
FROM python:3.7
# install some utility packages
RUN apt update && apt install -y vim telnet
RUN pip3 install poetry==1.0.10
# install dependencies
WORKDIR /code
COPY poetry.lock pyproject.toml ./
RUN poetry config virtualenvs.create false \
&& poetry install
&& poetry install --no-root
# copy npm packages
COPY --from=npm /code /code