diff options
| author | kj_sh604 | 2026-03-15 16:19:35 -0400 |
|---|---|---|
| committer | kj_sh604 | 2026-03-15 16:19:35 -0400 |
| commit | b4348d5e5d11b3323b9b4e67935afdc26ef46a69 (patch) | |
| tree | fb9bc5a2c9e498032642dbbccb6a3695705ff05d /Dockerfile | |
| parent | ef6c30e6aa05f7f8053125a633e5953943367213 (diff) | |
refactor: Dockerfile
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2716803 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM node:18 AS build + +WORKDIR /opt/node_app + +COPY . . + +# do not ignore optional dependencies: +# Error: Cannot find module @rollup/rollup-linux-x64-gnu +RUN yarn --network-timeout 600000 + +ARG NODE_ENV=production + +RUN yarn build:app:docker + +FROM nginx:1.27-alpine + +COPY --from=build /opt/node_app/excalidraw-app/build /usr/share/nginx/html + +HEALTHCHECK CMD wget -q -O /dev/null http://localhost || exit 1 |
