Merge pull request #365 from simple-login/refactor/stable-apt

refactor(build): remove dependencies in production
This commit is contained in:
Son Nguyen Kim 2021-02-02 18:13:45 +01:00 committed by GitHub
commit 33ae42dddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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