mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
Merge pull request #365 from simple-login/refactor/stable-apt
refactor(build): remove dependencies in production
This commit is contained in:
commit
33ae42dddf
@ -7,16 +7,13 @@ RUN cd /code/static && npm install
|
|||||||
# Main image
|
# Main image
|
||||||
FROM python:3.7
|
FROM python:3.7
|
||||||
|
|
||||||
# install some utility packages
|
|
||||||
RUN apt update && apt install -y vim telnet
|
|
||||||
|
|
||||||
RUN pip3 install poetry==1.0.10
|
RUN pip3 install poetry==1.0.10
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
COPY poetry.lock pyproject.toml ./
|
COPY poetry.lock pyproject.toml ./
|
||||||
RUN poetry config virtualenvs.create false \
|
RUN poetry config virtualenvs.create false \
|
||||||
&& poetry install
|
&& poetry install --no-root
|
||||||
|
|
||||||
# copy npm packages
|
# copy npm packages
|
||||||
COPY --from=npm /code /code
|
COPY --from=npm /code /code
|
||||||
|
Loading…
Reference in New Issue
Block a user