Skip to content
Closed
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
2 changes: 1 addition & 1 deletion packages/edge/infra/client/container-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN \
--mount=type=cache,target=/root/.cargo/git \
--mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/app/target \
RUSTFLAGS="--cfg tokio_unstable" cargo build --release --bin rivet-container-runner && \
RUSTFLAGS="--cfg tokio_unstable" cargo build --bin rivet-container-runner --release && \
mkdir -p /app/dist && \
mv /app/target/x86_64-unknown-linux-musl/release/rivet-container-runner /app/dist/rivet-container-runner

Expand Down
4 changes: 2 additions & 2 deletions packages/edge/infra/client/isolate-v8-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ RUN \
--mount=type=cache,target=/root/.cargo/git \
--mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/app/target \
RUSTFLAGS="--cfg tokio_unstable" cargo build --target x86_64-unknown-linux-gnu --bin rivet-isolate-v8-runner && \
RUSTFLAGS="--cfg tokio_unstable" cargo build --target x86_64-unknown-linux-gnu --bin rivet-isolate-v8-runner --release && \
mkdir -p /app/dist && \
mv /app/target/x86_64-unknown-linux-gnu/debug/rivet-isolate-v8-runner /app/dist/rivet-isolate-v8-runner
mv /app/target/x86_64-unknown-linux-gnu/release/rivet-isolate-v8-runner /app/dist/rivet-isolate-v8-runner

# Create an empty image and copy binaries into it to minimize the size of the image
FROM scratch
Expand Down
4 changes: 2 additions & 2 deletions packages/edge/infra/client/manager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ RUN \
--mount=type=cache,target=/root/.cargo/git \
--mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/app/target \
RUSTFLAGS="--cfg tokio_unstable" cargo build --target x86_64-unknown-linux-gnu --bin rivet-client && \
RUSTFLAGS="--cfg tokio_unstable" cargo build --target x86_64-unknown-linux-gnu --bin rivet-client --release && \
mkdir -p /app/dist && \
mv /app/target/x86_64-unknown-linux-gnu/debug/rivet-client /app/dist/rivet-client
mv /app/target/x86_64-unknown-linux-gnu/release/rivet-client /app/dist/rivet-client

# Create an empty image and copy binaries into it to minimize the size of the image
FROM scratch
Expand Down
4 changes: 2 additions & 2 deletions packages/edge/infra/edge-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ RUN \
--mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/app/target \
# TODO: release is too slow
RUSTFLAGS="--cfg tokio_unstable" cargo build --target x86_64-unknown-linux-gnu --bin rivet-edge-server && \
RUSTFLAGS="--cfg tokio_unstable" cargo build --target x86_64-unknown-linux-gnu --bin rivet-edge-server --release && \
mkdir -p /app/dist && \
mv /app/target/x86_64-unknown-linux-gnu/debug/rivet-edge-server /app/dist/rivet-edge-server
mv /app/target/x86_64-unknown-linux-gnu/release/rivet-edge-server /app/dist/rivet-edge-server

# Create an empty image and copy binaries into it to minimize the size of the image
FROM scratch
Expand Down
Loading