2025-03-05 12:47:59 +00:00
|
|
|
|
|
|
|
FROM node:18 AS dependencies
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
# image for development
|
|
|
|
FROM dependencies AS dev
|
|
|
|
CMD ["npm", "run", "dev", "--" ,"--port", "3000", "--host", "0.0.0.0"]
|
|
|
|
|
|
|
|
FROM dependencies AS build
|
|
|
|
COPY . ./
|
|
|
|
RUN npm run build -- --mode production
|
|
|
|
|
2025-03-05 13:20:15 +00:00
|
|
|
CMD [ "node", "build" ]
|