🐋 Docker and Gitea Workflow
All checks were successful
Deploy application / deploy (push) Successful in 19s

- Moved tsx to dependencies as node TS support is 💩
- Renamed start-once to run-once
- TODOs
This commit is contained in:
2025-01-26 17:41:44 +01:00
parent 2e73baf98b
commit aaa85e99cb
8 changed files with 89 additions and 7 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:22-slim
LABEL authors="Martin Berg Alstad"
COPY . .
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
CMD ["pnpm", "start-prod"]