mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 00:08:52 -06:00
web: Update Dockerfile, Makefile
This commit is contained in:
@@ -4,13 +4,15 @@ WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
ARG REACT_APP_BACKEND_URL
|
||||
ENV REACT_APP_BACKEND_URL=$REACT_APP_BACKEND_URL
|
||||
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"]
|
||||
# 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