Skip to content

Commit

Permalink
fix: update the MUSL docker container for use with GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Oct 29, 2020
1 parent d6942a4 commit 5647032
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions native/Dockerfile.musl
Expand Up @@ -4,8 +4,11 @@ ARG NODE_VERSION=14
RUN addgroup -S -g 1000 rust && adduser -S -u 1000 rust -G rust
RUN apk add --no-cache curl bash python3 gcc musl-dev libstdc++ ca-certificates openssl ncurses coreutils python2 make g++ libgcc linux-headers grep util-linux binutils findutils perl

RUN mkdir -p /github/workspace
RUN chmod -R 777 /github

USER rust
RUN mkdir -p /home/rust/bin /home/rust/src
RUN mkdir -p /home/rust/bin /github/workspace
RUN touch /home/rust/.bashrc && touch /home/rust/.profile

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-host x86_64-unknown-linux-musl
Expand All @@ -27,5 +30,5 @@ ENV RUSTONIG_SYSTEM_LIBONIG=0
ENV OPENSSL_STATIC=1

COPY build-native.sh /home/rust/bin/
WORKDIR /home/rust/src
WORKDIR /github/workspace
ENTRYPOINT [ "/home/rust/bin/build-native.sh" ]

0 comments on commit 5647032

Please sign in to comment.