excalidraw/Dockerfile

24 lines
570 B
Docker
Raw Normal View History

FROM node:18 AS build
WORKDIR /opt/node_app
FROM build as production_buildstage
COPY package.json yarn.lock ./
COPY excalidraw-app/package.json ./excalidraw-app/
COPY packages/excalidraw/package.json ./packages/excalidraw/
RUN yarn --network-timeout 600000
COPY . .
ARG NODE_ENV=production
RUN yarn build:app:docker
2024-01-07 11:46:08 +01:00
FROM nginxinc/nginx-unprivileged:1.25-alpine-slim as production
COPY --from=production_buildstage /opt/node_app/excalidraw-app/build /usr/share/nginx/html
HEALTHCHECK CMD wget -q -O /dev/null http://localhost || exit 1
FROM build as development