Skip to content
Closed
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: 3 additions & 3 deletions dockerfiles/diy/dockerfiles/Dockerfile.repo
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ RUN rustup component add rustfmt
# Copy the router source to our build environment
COPY . .

# Build and install the router
RUN cargo install --path apollo-router
Copy link
Copy Markdown
Contributor Author

@theJC theJC Mar 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because this didnt have --locked it was not honoring the cargo lock, and builds of an identical hash could end up with a different version of libraries.

# Build the router
RUN cargo build --release -p apollo-router
Copy link
Copy Markdown
Contributor Author

@theJC theJC Mar 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what the ci build uses, lets use this which honors the lockfile and so the DIY more closely aligns to the ci build.


# Make directories for config and schema
RUN mkdir -p /dist/config && \
mkdir /dist/schema && \
mv /usr/local/cargo/bin/router /dist
mv target/release/router /dist
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we are building and not installing now


# Copy configuration for docker image
COPY dockerfiles/router.yaml /dist/config
Expand Down
Loading