diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cfb8c16..ca6e0b1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,3 +29,4 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - run: docker build . --progress plain diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8877bb3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM ghcr.io/intelligence-ai/schemahub:v0.0.2 +COPY configuration.json /app/configuration.json +COPY .cache /app/schemas +RUN intelligence-schemahub-index /app/configuration.json /app/index + +FROM debian:bookworm-slim +COPY --from=builder /usr/share/schemahub/static /usr/share/schemahub/static +COPY --from=builder /usr/bin/intelligence-schemahub-serve \ + /usr/bin/intelligence-schemahub-serve +COPY --from=builder /app/configuration.json /app/configuration.json +COPY --from=builder /app/index /app/index +ENTRYPOINT [ "/usr/bin/intelligence-schemahub-serve" ] +CMD [ "/app/configuration.json", "/app/index" ]