mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 07:13:18 +08:00
refactor(build): remove dependencies in production
This commit is contained in:
parent
25afe4831c
commit
d6504b7e13
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue