jeddunk.xyz/Dockerfile
Jeddunk febb0b52d2 Cleanup
Rename documentation files, simplify Dockerfile, update module exclusions and category IDs, remove unused software section and comments
2024-07-25 20:23:47 +02:00

14 lines
337 B
Docker

ARG NODE_VERSION=20
ARG ALPINE_VERSION=3.19
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS builder
WORKDIR /build-stage
COPY package*.json ./
RUN npm ci
# Copy the the files you need
COPY . ./
RUN npm run build
FROM nginx:stable-alpine${ALPINE_VERSION} AS production
COPY --from=builder /build-stage/build /usr/share/nginx/html/