Merge pull request #948 from adamantike/fix/improve-docker-layer-caching-on-frontend-changes

fix: Improve Docker layer caching on frontend changes
This commit is contained in:
Georges-Antoine Assi
2024-06-23 12:14:35 -04:00
committed by GitHub

View File

@@ -5,8 +5,12 @@ ARG PYTHON_VERSION=3.11
# Build frontend
FROM node:lts-alpine${ALPINE_VERSION} as front-build-stage
WORKDIR /front
COPY ./frontend/package*.json ./
RUN npm ci
COPY ./frontend ./
RUN npm install && npm run build
RUN npm run build
# Build backend environment
FROM python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} AS backend-build