mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-07 08:48:51 -06:00
web: frontend: Switch to express
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
FROM node:18-alpine
|
||||
# Build Stage
|
||||
FROM node:18-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
CMD ["npm", "start"]
|
||||
RUN npm run build
|
||||
|
||||
# Production Stage
|
||||
FROM node:18-alpine AS production
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/build ./build
|
||||
COPY server.js ./
|
||||
RUN npm install --production express
|
||||
EXPOSE 3000
|
||||
CMD ["node", "server.js"]
|
||||
Reference in New Issue
Block a user