Fix Dockerfile: use npm install, copy public folder
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --production
|
RUN npm install --production
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
RUN mkdir -p public/icons
|
COPY --from=builder /app/public ./public
|
||||||
EXPOSE 4321
|
EXPOSE 4321
|
||||||
CMD ["node", "dist/server/entry.mjs"]
|
CMD ["node", "dist/server/entry.mjs"]
|
||||||
Reference in New Issue
Block a user