You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
356 B

# Builder
FROM node:18-alpine as builder
RUN corepack enable
WORKDIR /src
# Cache dependencies first
COPY package.json pnpm-lock.yaml ./
RUN pnpm install
# Copy other files and build
COPY . /src/
RUN pnpm build
# App
FROM nginxinc/nginx-unprivileged
COPY --chown=nginx:nginx --from=builder /src/out /app
COPY default.conf /etc/nginx/conf.d/default.conf