mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-05 00:59:41 -05:00
e5e5d81a33
* feat: initial commit bringing back side panel * feat: extend generation to generate docs index in app * refactor: minor gen cleanup * feat: side panel first pass * fix: dragging behavior * fix: overflow * fix: replace more uses of `<Sheet` * fix: slide out animation, back and forward buttons * fix: drag lag * feat: docs button, fix header * fix: lag on drag in iframe * fix: generation of paths * feat: first doc button! * fix: lint * fix: start fixing builds * fix: apk * fix: fe dockerfile * chore: lint * fix: gen snips in ci * fix: copy the python stuff more places * feat: first empty state * fix: provider * fix: reset history on close * feat: event side panel * feat: improve styling * fix: overflow state * fix: rm selected event, useEffect * fix: lint * fix: spacing * fix: scrollbar for toolbar filters on overflow * feat: improve scrollbar styling * fix: scroll metric badges on overflow * fix: copy improvements * chore: lint * fix: sidebar toggle * fix: empty states, docs button * fix: docs button variant / size * feat: theme from param
40 lines
1.0 KiB
Docker
40 lines
1.0 KiB
Docker
# This expects the hatchet-lite image to be built and available on the machine
|
|
# -------------------
|
|
ARG HATCHET_API_IMAGE
|
|
|
|
# Stage 1: copy from the existing Go built image
|
|
FROM $HATCHET_API_IMAGE as api-binary-base
|
|
|
|
# Stage 2: build the frontend
|
|
FROM node:18-alpine as frontend-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 3: run in nginx alpine image
|
|
FROM nginx:alpine
|
|
|
|
ARG APP_TARGET=client
|
|
|
|
COPY --from=api-binary-base /hatchet/hatchet-api ./hatchet-api
|
|
COPY ./build/package/dashboard-entrypoint.sh ./entrypoint.sh
|
|
COPY ./build/package/dashboard-nginx.conf /etc/nginx/nginx.conf
|
|
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
COPY --from=frontend-build /app/dist /usr/share/nginx/html
|
|
|
|
# Make entrypoint script executable
|
|
RUN chmod +x ./entrypoint.sh
|
|
|
|
EXPOSE 80
|
|
|
|
# Run the entrypoint script
|
|
CMD ["./entrypoint.sh"]
|