jsoncrack.com/Dockerfile

17 lines
349 B
Docker
Raw Normal View History

# Builder
2023-07-23 13:38:32 +03:00
FROM node:18-alpine as builder
WORKDIR /src
# Cache dependencies first
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
# Copy other files and build
2023-03-08 11:43:38 +03:00
COPY . /src/
RUN yarn build
# App
2022-08-16 17:23:13 +03:00
FROM nginxinc/nginx-unprivileged
2023-03-08 11:43:38 +03:00
COPY --chown=nginx:nginx --from=builder /src/out /app
2022-08-16 17:23:13 +03:00
COPY default.conf /etc/nginx/conf.d/default.conf