Added .dockerignore, Docker image can be built on arm64. Refs #12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
# Build output and VCS data are not needed in the image and are huge
|
||||||
|
/target/
|
||||||
|
/.git/
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Local configuration with passwords and runtime data must never get into an image layer
|
||||||
|
/config.toml
|
||||||
|
/data/
|
||||||
|
/assets/data/
|
||||||
|
/Maildir/
|
||||||
|
|
||||||
|
# Local tooling and scratch files
|
||||||
|
/.idea/
|
||||||
|
/.vscode/
|
||||||
|
/.settings/
|
||||||
|
/.project
|
||||||
|
/.claude/
|
||||||
|
/html/
|
||||||
|
/local_history.patch
|
||||||
|
/end2end/
|
||||||
+4
-3
@@ -2,9 +2,10 @@ FROM rust:1.86.0-bookworm AS builder
|
|||||||
|
|
||||||
# Install cargo-binstall, which makes it easier to install other
|
# Install cargo-binstall, which makes it easier to install other
|
||||||
# cargo extensions like cargo-leptos
|
# cargo extensions like cargo-leptos
|
||||||
RUN wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
|
# (uname -m gives x86_64 or aarch64, so the image builds on both architectures)
|
||||||
RUN tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz
|
RUN wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-$(uname -m)-unknown-linux-musl.tgz \
|
||||||
RUN cp cargo-binstall /usr/local/cargo/bin
|
&& tar -xvf cargo-binstall-$(uname -m)-unknown-linux-musl.tgz \
|
||||||
|
&& cp cargo-binstall /usr/local/cargo/bin
|
||||||
|
|
||||||
# Install required tools
|
# Install required tools
|
||||||
RUN apt-get update -y \
|
RUN apt-get update -y \
|
||||||
|
|||||||
Reference in New Issue
Block a user