Skip to content

Commit

Permalink
reduce layers
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Jul 3, 2024
1 parent 1a38303 commit 45bf4a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ USER nobody
FROM api-runtime-private as private-cloud-unified

COPY --from=build-python-private /build/.venv/ /usr/local/
COPY --from=build-node-django /build/api/static /app/static
COPY --from=build-node-django /build/api/app/templates/webpack /app/app/templates/webpack
COPY --from=build-node-django /build/api/ /app/

RUN python manage.py collectstatic --no-input
RUN touch ./ENTERPRISE_VERSION
Expand Down Expand Up @@ -208,8 +207,7 @@ CMD ["node", "./api/index.js"]
FROM api-runtime as oss-unified

COPY --from=build-python /build/.venv/ /usr/local/
COPY --from=build-node-django /build/api/static /app/static/
COPY --from=build-node-django /build/api/app/templates/webpack /app/app/templates/webpack
COPY --from=build-node-django /build/api/ /app/

RUN python manage.py collectstatic --no-input

Expand Down

0 comments on commit 45bf4a6

Please sign in to comment.