Skip to content

Commit

Permalink
ci: dockerfile caching
Browse files Browse the repository at this point in the history
  • Loading branch information
coloradocolby committed Apr 26, 2022
1 parent ab9e2db commit c3ac9df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ RUN USER=root

RUN mkdir thokr
WORKDIR /thokr
COPY . ./


RUN rustup target add x86_64-unknown-linux-musl
RUN apt update
RUN apt -y install musl-tools musl-dev build-essential gcc-x86-64-linux-gnu

COPY . ./

ENV RUSTFLAGS='-C linker=x86_64-linux-gnu-gcc'
RUN cargo build --target x86_64-unknown-linux-musl --release

Expand Down

0 comments on commit c3ac9df

Please sign in to comment.