Files
hatchet/build/package/frontend.dockerfile
Gabe Ruttner 5cda236e5d fix: addl meta unmarshal deep obj (#1245)
* fix: addl meta unmarshal

* fix: ci

* fix: ci

* fix: ci
2025-02-04 10:59:36 -08:00

22 lines
543 B
Docker

FROM node:18-alpine as build
WORKDIR /app
COPY ./frontend/app/package.json ./frontend/app/pnpm-lock.yaml ./
RUN corepack pnpm@9.15.4 --version
RUN corepack pnpm@9.15.4 install --frozen-lockfile && corepack pnpm@9.15.4 store prune
COPY ./frontend/app ./
RUN npm run build
# Stage 2: Serve the built app with NGINX
FROM nginx:alpine
ARG APP_TARGET=client
COPY ./build/package/nginx.conf /etc/nginx/nginx.conf
RUN rm -rf /usr/share/nginx/html/*
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]