aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorkj_sh6042026-05-07 00:15:11 -0400
committerkj_sh6042026-05-07 00:15:11 -0400
commit5bb197cd304d6cab32c39782b60391f9b399541b (patch)
treebb47ad11d36dce8a4c8ec4a8d14acd1a0fd72c65 /Dockerfile
parent52b8d65631f71a51e7118af140855f936c2a4db7 (diff)
refactor: kj-ify the repo with a makefile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile22
1 files changed, 8 insertions, 14 deletions
diff --git a/Dockerfile b/Dockerfile
index 2716803..91a6401 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,19 +1,13 @@
-FROM node:18 AS build
+FROM ubuntu:22.04
-WORKDIR /opt/node_app
+WORKDIR /srv/www
-COPY . .
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends python3 \
+ && rm -rf /var/lib/apt/lists/*
-# do not ignore optional dependencies:
-# Error: Cannot find module @rollup/rollup-linux-x64-gnu
-RUN yarn --network-timeout 600000
+COPY ./excalidraw-app/build/ /srv/www/
-ARG NODE_ENV=production
+EXPOSE 8000
-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
+CMD ["python3", "-m", "http.server", "8000"] \ No newline at end of file