fix
This commit is contained in:
@@ -1,18 +1,18 @@
|
|||||||
FROM node:20-alpine AS frontend
|
FROM node:20-alpine AS frontend
|
||||||
WORKDIR /frontend
|
WORKDIR /frontend
|
||||||
COPY ../frontend/package*.json ./
|
COPY frontend/package*.json ./
|
||||||
RUN npm ci || npm i
|
RUN npm ci || npm i
|
||||||
COPY ../frontend/ .
|
COPY frontend/ .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
COPY package*.json ./
|
COPY node-api/package*.json ./
|
||||||
RUN npm ci --only=production || npm i --only=production
|
RUN npm ci --only=production || npm i --only=production
|
||||||
|
|
||||||
COPY . .
|
COPY node-api/. .
|
||||||
# Overwrite static with built SPA
|
# Overwrite static with built SPA
|
||||||
COPY --from=frontend /frontend/dist /app/public
|
COPY --from=frontend /frontend/dist /app/public
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user