Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions servers/su/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Build the dynamic binary
FROM rust:1.75.0 as builder
FROM rust:1.78.0 as builder

# Set the working directory in the container
WORKDIR /usr/src/su
Expand Down Expand Up @@ -49,4 +49,4 @@ LABEL build_instructions="To build just the binary, run the following command: d
ENTRYPOINT [ "/app/su" ]

# Run time command arguments, default is empty
CMD []
CMD []
8 changes: 4 additions & 4 deletions servers/su/Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
### NOTE: THIS WON'T WORK ON AN X86 DEVICE

# Stage 1: Planner
FROM --platform=linux/arm64 rust:1.75.0 AS planner
FROM --platform=linux/arm64 rust:1.78.0 AS planner
WORKDIR /app
RUN cargo install cargo-chef
COPY . .
RUN cargo chef prepare --recipe-path recipe.json

# Stage 2: Cache the build of the dependencies
FROM --platform=linux/arm64 rust:1.75.0 AS cacher
FROM --platform=linux/arm64 rust:1.78.0 AS cacher
WORKDIR /app
RUN cargo install cargo-chef
RUN apt-get update && apt-get install -y \
Expand All @@ -23,7 +23,7 @@ RUN ls /lib/
RUN cargo chef cook --release --recipe-path recipe.json

# Stage 3: Build binary with pre-built and cached dependencies
FROM --platform=linux/arm64 rust:1.75.0 AS builder
FROM --platform=linux/arm64 rust:1.78.0 AS builder
COPY . /app
WORKDIR /app
COPY --from=cacher /app/target target
Expand All @@ -33,7 +33,7 @@ COPY --from=cacher /lib/aarch64-linux-gnu/* /lib/aarch64-linux-gnu/
RUN cargo build --release

# Stage 4: Runner
FROM --platform=linux/arm64 gcr.io/distroless/cc-debian12
FROM --platform=linux/arm64 ubuntu:22.04
RUN apt-get update && apt install ca-certificates openssl -y
COPY --from=builder /app/target/release/su /
COPY --from=cacher /lib/aarch64-linux-gnu/* /lib/aarch64-linux-gnu/
Expand Down
6 changes: 3 additions & 3 deletions servers/su/Dockerfile.x86
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
### NOTE: THIS WON'T WORK ON AN ARM64 DEVICE

# Stage 1: Planner
FROM --platform=linux/amd64 rust:1.75.0 AS planner
FROM --platform=linux/amd64 rust:1.78.0 AS planner
WORKDIR /app
RUN cargo install cargo-chef
COPY . .
RUN cargo chef prepare --recipe-path recipe.json

# Stage 2: Cache the build of the dependencies
FROM --platform=linux/amd64 rust:1.75.0 AS cacher
FROM --platform=linux/amd64 rust:1.78.0 AS cacher
WORKDIR /app
RUN cargo install cargo-chef
RUN apt-get update && apt-get install -y \
Expand All @@ -24,7 +24,7 @@ RUN ls /lib/
RUN cargo chef cook --release --recipe-path recipe.json

# Stage 3: Build binary with pre-built and cached dependencies
FROM --platform=linux/amd64 rust:1.75.0 AS builder
FROM --platform=linux/amd64 rust:1.78.0 AS builder
COPY . /app
WORKDIR /app
COPY --from=cacher /app/target target
Expand Down