jsoncrack.com/Dockerfile
Juan Carlos Alonso 8185a9c620
Add Dockerfile
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.
2022-04-28 12:15:05 +08:00

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