build(docker): optimize docker build

This commit is contained in:
2026-08-28 10:13:58 +03:00
parent 9f5c43ce92
commit d8ee66480c
+4 -2
View File
@@ -27,11 +27,13 @@ ENV PATH="/app/.venv/bin:$PATH"
WORKDIR /app WORKDIR /app
ENV TZ="Europe/Moscow" ENV TZ="Europe/Moscow"
COPY --from=builder /app ./ COPY --from=builder /app ./
RUN .venv/bin/playwright install chromium --with-deps --only-shell
COPY --from=node-builder /app/dist ./static/dist COPY --from=node-builder /app/dist ./static/dist
COPY gallery gallery/ COPY gallery gallery/
COPY --from=builder --parents locales/**/*.mo ./ COPY --from=builder --parents locales/**/*.mo ./
RUN .venv/bin/playwright install chromium --with-deps --only-shell
CMD ["uvicorn", "gallery.main:app", "--host", "0.0.0.0", "--port", "80", "--log-config", "gallery/logging.yaml"] CMD ["uvicorn", "gallery.main:app", "--host", "0.0.0.0", "--port", "80", "--log-config", "gallery/logging.yaml"]