recipes-front/Dockerfile

15 lines
243 B
Docker
Raw Normal View History

2024-01-31 13:52:27 +02:00
FROM node:21 AS build
WORKDIR /app
COPY package.json ./
COPY package-lock.json ./
RUN npm install
COPY . ./
RUN npm run build
RUN npm install --global http-server
EXPOSE 8000
CMD ["npm", "run", "preview", "--", "--host", "--port", "8000"]