This commit is contained in:
Tom Trappmann
2026-02-02 22:44:52 +01:00
commit 68c9ba90c5
44 changed files with 19104 additions and 0 deletions

31
Dockerfile Normal file
View File

@@ -0,0 +1,31 @@
# ---- build stage ----
FROM node:20-alpine AS build
WORKDIR /NautilusDesk
# Needed for node-gyp / native deps on Alpine
RUN apk add --no-cache python3 make g++ git
# Install deps
COPY package*.json ./
RUN npm install
# Copy source + build
COPY . .
RUN npm run build
# ---- runtime stage ----
FROM node:20-alpine AS runtime
WORKDIR /NautilusDesk/app
ENV NODE_ENV=production
ENV PORT=3000
ENV HOST=0.0.0.0
RUN addgroup -S nodegroup && adduser -S nodeuser -G nodegroup
COPY --from=build /NautilusDesk/.output ./.output
EXPOSE 3000
USER nodeuser
CMD ["node", ".output/server/index.mjs"]