my-portfolio/Dockerfile

12 lines
171 B
Docker
Raw Normal View History

2024-04-25 23:01:30 +00:00
FROM node:21 AS build
2024-04-13 21:34:10 +00:00
WORKDIR /app
COPY package.json ./
COPY package-lock.json ./
RUN npm install
COPY . ./
RUN npm run build
FROM nginx:1.19-alpine
2024-04-25 23:01:30 +00:00
COPY --from=build .