fix dockerfile for arm64
This commit is contained in:
parent
f7a6395d11
commit
deb7eb1202
5 changed files with 19 additions and 74 deletions
|
|
@ -6,7 +6,7 @@ SHELL ["/bin/sh", "-x", "-c"]
|
|||
ENV SERIAL 2
|
||||
|
||||
########################################
|
||||
FROM base as builder
|
||||
FROM --platform=$BUILDPLATFORM base AS builder
|
||||
|
||||
ENV CFLAGS=-Ofast
|
||||
ENV BUILD_DEPS curl make ca-certificates build-essential
|
||||
|
|
@ -27,7 +27,7 @@ RUN apt-get update && apt-get install -qy --no-install-recommends $BUILD_DEPS &&
|
|||
strip --strip-all /tmp/target/release/rpxy
|
||||
|
||||
########################################
|
||||
FROM base AS runner
|
||||
FROM --platform=$TARGETPLATFORM base AS runner
|
||||
|
||||
ENV RUNTIME_DEPS logrotate ca-certificates gosu
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue