14 lines
332 B
Docker
14 lines
332 B
Docker
FROM node:21-alpine as build
|
|
WORKDIR /app
|
|
ENV PATH /app/node_modules/.bin:$PATH
|
|
COPY ./frontend/app .
|
|
RUN npm ci
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.25.4-alpine
|
|
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
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|