Skip to content

Conversation

@magostinelli
Copy link

Ability to compile the image without installing cargo and dependencies on the localhost.

RUN apk add --no-cache musl-dev musl-dev openssl-dev perl make gcc
WORKDIR /app
COPY . .
RUN cargo build --release --target x86_64-unknown-linux-musl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use ${TARGET} here to also support other architectures like aarch64

FROM alpine:3.19

RUN apk add --no-cache curl
RUN apk add --no-cache curl openssl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curl is no longer required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants