Skip to content

Commit

Permalink
Update Dockerfile.dev adding cross wasm-pack FreeBSD
Browse files Browse the repository at this point in the history
FreeBSD build needs 'cross build' instead of 'cargo build'
  • Loading branch information
n-connect committed Mar 20, 2024
1 parent bf88329 commit ac58173
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,19 @@ RUN rustup target add x86_64-unknown-linux-musl && \
rustup target add armv7-unknown-linux-musleabihf && \
rustup target add x86_64-unknown-freebsd

### Install Docker inside Docker
RUN apt update;apt install -y docker.io && \
apt clean && \
rm -rf /var/lib/apt/lists/*
## Error starting systemctl daemon, lack of PID 1 cause of docker.
## But docker cli commands works cause of host running with -v /var/run/docker.sock:/var/run/docker.sock
# systemctl start docker && \

### Add cross with Docker-in-Docker

ENV CROSS_CONTAINER_IN_CONTAINER=true
RUN cargo install cross && \
cargo install wasm-pack


CMD ["bash"]

0 comments on commit ac58173

Please sign in to comment.