From 89eeeb9075acec512111c9f78ed8158a556e06e4 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 3 Dec 2025 21:54:29 +0100 Subject: Save WIP Again. --- Containerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Containerfile (limited to 'Containerfile') diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..bfdf793 --- /dev/null +++ b/Containerfile @@ -0,0 +1,22 @@ +FROM docker.io/library/node:lts-alpine + +RUN apk add --no-cache make && \ + corepack enable + +RUN addgroup -g 1001 -S nodejs && \ + adduser -S canvas -u 1001 -G nodejs + +WORKDIR /canvas +RUN chown -R canvas:nodejs /canvas + +USER canvas + +COPY --chown=canvas:nodejs package.json pnpm-lock.yaml ./ + +RUN pnpm install --frozen-lockfile + +COPY --chown=canvas:nodejs . . + +EXPOSE 5173 + +CMD ["make", "start"] -- cgit