jsoncrack.com/Dockerfile
2023-12-24 13:59:30 +03:00

17 lines
336 B
Docker

# Builder
FROM node:18-alpine as builder
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