From 5bb197cd304d6cab32c39782b60391f9b399541b Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Thu, 7 May 2026 00:15:11 -0400 Subject: refactor: kj-ify the repo with a makefile --- Dockerfile | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'Dockerfile') 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 -- cgit v1.2.3