From 2bf6bb0255aa430fb377c420fae94941eb1360cd Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 17 Sep 2023 09:08:03 +0200 Subject: [PATCH] Update dockerfile for static build --- Dockerfile.static | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile.static b/Dockerfile.static index 50da581c..702ccb62 100644 --- a/Dockerfile.static +++ b/Dockerfile.static @@ -1,5 +1,5 @@ -FROM alpine:3.15 AS build -MAINTAINER Ivan +FROM alpine:3.18 AS build +LABEL maintainer="Ivan " ENV CARGO_ARGS="" ENV FEATURES="" @@ -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