Skip to content

Commit

Permalink
mac
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Nov 23, 2023
1 parent 437b842 commit 69c48e0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,12 @@ services:
profiles:
- stockfish-analysis

lila_docker_rs:
image: rust:1.74.0-slim-bookworm
command:
build:
context: docker
dockerfile: command.Dockerfile
volumes:
- ./command:/mnt
working_dir: /mnt
- ./command:/command
profiles:
- utils

Expand Down
5 changes: 5 additions & 0 deletions docker/command.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM messense/cargo-zigbuild:0.18.0

WORKDIR /command

ENTRYPOINT cargo zigbuild --release --target x86_64-apple-darwin
4 changes: 2 additions & 2 deletions lila-docker
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ if [ ! -z "$GITPOD_WORKSPACE_ID" ]; then
fi

run_setup() {
docker compose run --rm lila_docker_rs cargo build
./command/target/debug/command setup
docker compose run --rm command
./command/target/release/command setup

export $(cat .env | xargs)

Expand Down

0 comments on commit 69c48e0

Please sign in to comment.