mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-10 06:42:49 +02:00
docker: try to reduce image size
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM python:3.11.8-slim-buster AS python-build-stage
|
FROM python:3.11-slim-buster AS python-build-stage
|
||||||
|
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y \
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
@@ -18,7 +18,7 @@ RUN npm config set registry https://registry.npmmirror.com/ && \
|
|||||||
npm run build && \
|
npm run build && \
|
||||||
npm cache clean --force
|
npm cache clean --force
|
||||||
|
|
||||||
FROM python:3.11.8-slim-buster AS python-run-stage
|
FROM python:3.11-slim-buster AS python-run-stage
|
||||||
COPY --from=webpack_build /usr/src/frontend/build /usr/src/frontend/build
|
COPY --from=webpack_build /usr/src/frontend/build /usr/src/frontend/build
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|||||||
Reference in New Issue
Block a user