Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: #43 remove arm related fixes #47

Merged
merged 1 commit into from
Sep 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ FROM docker.io/rust:alpine as builder
# Create a cache directory that will be copied into the final image
RUN mkdir "/cache"

# Install alpine-sdk that provides build dependencies
# Install ssl certificates that will also be copied into the final image
RUN apk update && apk add --no-cache alpine-sdk ca-certificates

# Update crates io index via git cli, otherwise we'll an out of memory when building for arm https://github.com/rust-lang/cargo/issues/9167
RUN mkdir -p ~/.cargo/
RUN echo "[net]" > ~/.cargo/config
RUN echo "git-fetch-with-cli = true" >> ~/.cargo/config

# Prepare build dir
RUN mkdir /app
WORKDIR /app
Expand Down