mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
8185a9c620
Add a simple Dockerfile to allow people running using Docker. Later this Dockerfile could be used in a GitHub action to provide and official Docker image.
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
|