Skip to content

Commit

Permalink
docker fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Dec 30, 2024
1 parent d6ea3af commit 7f1cf56
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
27 changes: 27 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# editor things
.idea/
.zed/
.vscode/

# misc things
.DS_Store
.gitignore
*.nix

# python things
pyrightconfig.json
__pycache__/

# Added by cargo (rust things)
/target
build/
dist/
logs/

# protobuf
mod.rs
command_data.rs
serverdata.rs

# private testing
/privatetest/
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ COPY . .

RUN git submodule update --init
RUN apt-get update && apt-get install -y libssl-dev build-essential cmake
RUN cargo install --path --locked --bins .
RUN cargo build --all --release

FROM debian:bookworm-slim
RUN apt update
RUN apt install openssl -y
RUN apt-get update
RUN apt-get install openssl -y

COPY --from=builder /usr/local/cargo/bin/calypso /usr/local/bin/calypso
COPY --from=builder /usr/local/cargo/bin/calypso-simulate /usr/local/bin/calypso-simulate
COPY --from=builder /usr/src/calypso/target/release/calypso /usr/local/bin/calypso
COPY --from=builder /usr/src/calypso/target/release/calypso-simulate /usr/local/bin/calypso-simulate

CMD ["calypso-simulate"]

Expand Down

0 comments on commit 7f1cf56

Please sign in to comment.