excalidraw/Dockerfile
Guillaume Grossetie 106219e5b5 Remove the extra "deps" step
This step can be done as part of the build (faster and more reliable).
2020-11-07 12:31:43 +01:00

16 lines
323 B
Docker

FROM node:14-alpine AS build
WORKDIR /opt/node_app
COPY . .
RUN npm i --no-optional
ARG REACT_APP_INCLUDE_GTAG=false
ARG NODE_ENV=production
RUN npm run build:app:docker
FROM nginx:1.17-alpine
COPY --from=build /opt/node_app/build /usr/share/nginx/html
HEALTHCHECK CMD wget -q -O /dev/null http://localhost || exit 1