Skip to content

Commit

Permalink
feat: deploy workflow-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
octoshikari committed Jul 6, 2023
1 parent 724e8a6 commit 93543e5
Show file tree
Hide file tree
Showing 10 changed files with 650 additions and 891 deletions.
68 changes: 0 additions & 68 deletions examples/aidbox-workflow/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions examples/aidbox-workflow/email.html

This file was deleted.

146 changes: 0 additions & 146 deletions examples/aidbox-workflow/index.ts

This file was deleted.

21 changes: 21 additions & 0 deletions examples/apps/workflow-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM node:18 AS builder
ENV JQ_VERSION=1.6
RUN wget --no-check-certificate https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 -O /tmp/jq-linux64
RUN cp /tmp/jq-linux64 /usr/bin/jq
RUN chmod +x /usr/bin/jq
RUN corepack enable
WORKDIR /app
COPY . .
RUN cat ./src/config.json
RUN jq 'to_entries | map_values({ (.key) : ("$" + .key | ascii_upcase) }) | reduce .[] as $item ({}; . + $item)' ./src/config.json > ./src/config.tmp.json && mv ./src/config.tmp.json ./src/config.json
RUN pnpm install && pnpm run build

FROM nginx:1.25
ENV DEBIAN_FRONTEND=noninteractive
ENV JSFOLDER=/usr/share/nginx/html/assets/*.js
COPY start-nginx.sh /usr/bin/start-nginx.sh
RUN apt update && apt-get install moreutils -y
RUN chmod +x /usr/bin/start-nginx.sh
WORKDIR /usr/share/nginx/html
COPY --from=builder /app/dist .
ENTRYPOINT ["start-nginx.sh"]
Loading

0 comments on commit 93543e5

Please sign in to comment.