mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
14 lines
310 B
Docker
14 lines
310 B
Docker
# Builder
|
|
FROM node:14-buster as builder
|
|
ARG jsoncrack_host
|
|
ENV NEXT_PUBLIC_JSONCRACK_HOST $jsoncrack_host
|
|
WORKDIR /src
|
|
COPY . /src
|
|
RUN yarn install --legacy-peer-deps
|
|
RUN yarn run build
|
|
|
|
# App
|
|
FROM nginxinc/nginx-unprivileged
|
|
COPY --from=builder /src/out /app
|
|
COPY default.conf /etc/nginx/conf.d/default.conf
|