From 339f9626d2793bb0f3d935abaeee3b7cea4c5895 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 9 Mar 2023 11:38:49 +0100 Subject: [PATCH] compile statically on musl --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a4ef92a..1b446cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ FROM docker.io/rust:1.67-alpine3.17 AS builder -ENV RUSTFLAGS="-C target-feature=-crt-static" - RUN apk add --no-cache \ musl-dev \ wasm-pack \ @@ -18,7 +16,7 @@ RUN adduser -D woweb RUN sed -i 's|ws://localhost:3000/ws|wss://woweb.vanwa.ch/ws|' dist/assets/index.js -FROM scratch +FROM docker.io/alpine:3.17 COPY --from=builder /etc/passwd /etc/passwd COPY --from=builder /src/dist/woweb "/opt/woweb"