mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user