Skip to content

Commit

Permalink
Update dockerfile for static build
Browse files Browse the repository at this point in the history
  • Loading branch information
izderadicka committed Sep 17, 2023
1 parent 2fee0e8 commit 2bf6bb0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile.static
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM alpine:3.15 AS build
MAINTAINER Ivan <[email protected]>
FROM alpine:3.18 AS build
LABEL maintainer="Ivan <[email protected]>"
ENV CARGO_ARGS=""
ENV FEATURES=""

Expand All @@ -11,10 +11,8 @@ RUN apk update &&\
chmod -R 0777 /root &&\
mkdir /src &&\
mkdir /.cargo &&\
chmod a+rw /.cargo &&\
mkdir /.npm &&\
chmod a+rw /.npm

chmod a+rw /.cargo

WORKDIR /src
ENV RUSTFLAGS="-C target-feature=+crt-static -C link-self-contained=yes"
ENV PATH=/root/.cargo/bin:$PATH
Expand Down

0 comments on commit 2bf6bb0

Please sign in to comment.