-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e34a38
commit 717acde
Showing
6 changed files
with
73 additions
and
134 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM messense/rust-musl-cross:x86_64-musl as builder | ||
WORKDIR /eve-graph | ||
# Copy the source | ||
COPY . . | ||
# Build the app | ||
RUN cargo build --release --target x86_64-unknown-linux-musl | ||
|
||
# Create a new stage with minimal image | ||
FROM scratch | ||
COPY --from=builder /eve-graph/target/x86_64-unknown-linux-musl/release/eve-graph /eve-graph | ||
ENTRYPOINT ["/eve-graph"] | ||
EXPOSE 8008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: '3' | ||
services: | ||
api: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "8008:8008" | ||
depends_on: | ||
- neo4j | ||
neo4j: | ||
image: neo4j:5.14-community-bullseye | ||
ports: | ||
- "7474:7474" | ||
- "7687:7687" | ||
volumes: | ||
- neo4j_data:/data/ | ||
environment: | ||
- NEO4J_AUTH:neo4j/neo4jneo4j | ||
volumes: | ||
neo4j_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters