Skip to content

Commit

Permalink
fix: use ubuntu:22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
grandizzy committed Jan 29, 2025
1 parent f3548cb commit 8edde17
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile.cross
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# This image is meant to enable cross-architecture builds.
# It assumes the foundry binaries have already been compiled for `$TARGETPLATFORM` and are
# locatable in `./dist/bin/$TARGETARCH`
FROM alpine:3.20
FROM ubuntu:22.04

# Filled by docker buildx
ARG TARGETARCH

RUN apk add --no-cache git
RUN apt update && apt install -y git

COPY ./dist/bin/$TARGETARCH/* /usr/local/bin/

RUN adduser -Du 1000 foundry
RUN groupadd -g 1000 foundry && \
useradd -m -u 1000 -g foundry foundry

USER foundry

ENTRYPOINT ["/bin/sh", "-c"]

Expand Down

0 comments on commit 8edde17

Please sign in to comment.