added docker

This commit is contained in:
2025-09-03 19:45:48 +02:00
parent 4cbf97cc5a
commit b567187a77
4 changed files with 67 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
# Lightweight production image for the Hitstar Node app
FROM node:22-alpine
WORKDIR /app
# Install dependencies
COPY package*.json ./
RUN npm ci --omit=dev || npm install --omit=dev
# Copy app source (media lives outside via volume)
COPY . .
ENV NODE_ENV=production \
PORT=5173
EXPOSE 5173
CMD ["node", "server.js"]