Skip to content

Commit

Permalink
move Dockerfile to .github
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantk232 committed Jan 2, 2024
1 parent 6757f5d commit 92e5c5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile → .github/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ FROM ekidd/rust-musl-builder
# assumes a UID of 1000
ADD --chown=rust:rust . ./

RUN sudo chown rust -R /opt/rust

RUN rustup target add x86_64-unknown-linux-musl

CMD RUSTFLAGS="-Clink-arg=-Wl,--allow-multiple-definition" cargo build --release --features=auth
2 changes: 1 addition & 1 deletion .github/workflows/static_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Build-musl
run: |
echo "Building static binaries using ekidd/rust-musl-builder"
docker build -t fastn-build-image .
docker build -t fastn-build-image .github/
docker run --name fastn-build fastn-build-image
mkdir -p out
docker cp fastn-build:/home/rust/src/target/x86_64-unknown-linux-musl/release/fastn out/
Expand Down

0 comments on commit 92e5c5f

Please sign in to comment.