diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-03 21:54:29 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-03 21:55:07 +0100 |
| commit | 89eeeb9075acec512111c9f78ed8158a556e06e4 (patch) | |
| tree | 23ab351a1a6d09255bd12f7866908761f8a473bd /Containerfile | |
| parent | 587d8fe65d61b8f7217b4e8850b44e43159c16fb (diff) | |
Diffstat (limited to 'Containerfile')
| -rw-r--r-- | Containerfile | 22 |
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"] |