initial COM1 gateway system blueprint
This commit is contained in:
22
stack/Dockerfile
Normal file
22
stack/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Paketinfos
|
||||
COPY package.json ./
|
||||
|
||||
# Dependencies installieren (inkl. dev, weil Build Vite + esbuild braucht)
|
||||
RUN npm install
|
||||
|
||||
# Restliches Projekt kopieren
|
||||
COPY . .
|
||||
|
||||
# Production-Build (Front + Server)
|
||||
RUN npm run build
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3003
|
||||
|
||||
EXPOSE 3003
|
||||
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user