diff options
| author | Fuwn <[email protected]> | 2024-09-20 04:11:09 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-20 04:11:09 -0700 |
| commit | 4b68880e008c127b5a8303b7ab59467f8d0f92dd (patch) | |
| tree | d1136be84b2a3d7b92dcfc33dff130cce23106a2 /Dockerfile | |
| parent | blogs: i2p (diff) | |
| download | locus-4b68880e008c127b5a8303b7ab59467f8d0f92dd.tar.xz locus-4b68880e008c127b5a8303b7ab59467f8d0f92dd.zip | |
ci(docker): use ghcr.io
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index c4ca302..0000000 --- a/Dockerfile +++ /dev/null @@ -1,44 +0,0 @@ -FROM clux/muslrust:nightly-2024-07-17 as dependencies - -RUN rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu - -FROM clux/muslrust:nightly-2024-07-17 as build - -WORKDIR /source - -RUN cargo new locus - -WORKDIR /source/locus - -COPY amenadiel/ ./amenadiel/ -COPY Cargo.* . - -RUN rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu -RUN cargo build --release -Zbuild-std - -COPY .git .git -COPY content content -COPY src src -COPY build.rs build.rs -COPY yarte.toml yarte.toml - -RUN --mount=type=cache,target=/source/locus/target \ - --mount=type=cache,target=/root/.cargo/registry \ - cargo build --release --bin locus \ - && strip -s /source/locus/target/x86_64-unknown-linux-musl/release/locus \ - && mv /source/locus/target/x86_64-unknown-linux-musl/release/locus . -RUN strip -s /source/locus/locus -RUN mkdir /new_tmp - -FROM scratch - -WORKDIR /locus - -COPY --from=build /source/locus/locus . -COPY ./content ./content -# https://www.reddit.com/r/docker/comments/8y2zyx/how_to_add_a_empty_directory_to_a_scratch_image/e27oumn/ -COPY +build/new_tmp /tmp - -EXPOSE 1965 - -ENTRYPOINT ["./locus"] |