Skip to content

Commit

Permalink
Attempt to build a Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
  • Loading branch information
jviotti committed Jul 31, 2024
1 parent 679ff1e commit 3fa8c33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker build . --progress plain
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit 3fa8c33

Please sign in to comment.