bbuddy-ui/Dockerfile copy 2

12 lines
242 B
Plaintext
Raw Normal View History

2024-01-09 16:16:07 +00:00
FROM node:21-bookworm AS build
RUN node -v
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
FROM nginx
COPY --from=build /app/dist/ /usr/share/nginx/html/
RUN rm /etc/nginx/conf.d/default.conf
COPY _nginx/nginx.conf /etc/nginx/conf.d