Files
portfolio_v2/Dockerfile
T

18 lines
273 B
Docker

FROM node:23.7.0-alpine3.21 as builder
WORKDIR /app
COPY package*.json .
RUN npm ci --omit=dev && npm cache clean --force
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 3006
CMD ["nginx", "-g", "daemon off;"]