font-explorer/client/Dockerfile

16 lines
321 B
Docker
Raw Permalink Normal View History

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" ]