mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
17 lines
336 B
Docker
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
|