mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
19 lines
257 B
Docker
19 lines
257 B
Docker
|
# Builder
|
||
|
FROM node:14-buster as builder
|
||
|
|
||
|
WORKDIR /src
|
||
|
|
||
|
COPY . /src
|
||
|
|
||
|
RUN npm install --legacy-peer-deps
|
||
|
|
||
|
RUN npm run build
|
||
|
|
||
|
# App
|
||
|
FROM nginx:alpine
|
||
|
|
||
|
COPY --from=builder /src/out /app
|
||
|
|
||
|
RUN rm -rf /usr/share/nginx/html \
|
||
|
&& ln -s /app /usr/share/nginx/html
|