added docker
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user