Revert "Dockerfile: make this work for clean builds also."
This reverts commit d0386ee8ac.
This commit is contained in:
@@ -8,8 +8,8 @@ COPY package*.json ./
|
|||||||
COPY frontend/package*.json ./frontend/
|
COPY frontend/package*.json ./frontend/
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm i
|
RUN npm ci
|
||||||
RUN cd frontend && npm i
|
RUN cd frontend && npm ci
|
||||||
|
|
||||||
# Copy source files
|
# Copy source files
|
||||||
COPY . .
|
COPY . .
|
||||||
@@ -26,7 +26,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
# Install only production dependencies
|
# Install only production dependencies
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm i --production
|
RUN npm ci --production
|
||||||
|
|
||||||
# Copy built files
|
# Copy built files
|
||||||
COPY --from=builder /app/build ./build
|
COPY --from=builder /app/build ./build
|
||||||
|
|||||||
Reference in New Issue
Block a user