aboutsummaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2025-12-03 21:54:29 +0100
committerRuben Beltran del Rio <jj@r.bdr.sh>2025-12-03 21:55:07 +0100
commit89eeeb9075acec512111c9f78ed8158a556e06e4 (patch)
tree23ab351a1a6d09255bd12f7866908761f8a473bd /Containerfile
parent587d8fe65d61b8f7217b4e8850b44e43159c16fb (diff)
Save WIP Again.HEADmain
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile22
1 files changed, 22 insertions, 0 deletions
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"]