Skip to content

Commit

Permalink
Trying to fix docker build (#69)
Browse files Browse the repository at this point in the history
* Trying to fix docker build

* Fix build to actually produce .deb file

* Removed default build image since it pins a rust version
  • Loading branch information
rasmus-kirk authored Sep 26, 2024
1 parent 4294a2d commit b7bfbe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build and base images are assumed to be based on the same major version of Debian.
ARG build_image
ARG base_image
ARG base_image="debian:buster-slim"

# Build stage.
FROM ${build_image} AS build
Expand All @@ -17,7 +17,7 @@ RUN cargo build --release
# Set '--user="$(id -u):$(id -g)"' to make the result file owned by the calling user.
# The mounted folder on the host must already exist and be owned by the same user for this to work.
WORKDIR /out
ENTRYPOINT [ "/build/scripts/build-deb.sh", "/build/target/release/concordium-rosetta" ]
RUN [ "/build/scripts/build-deb.sh", "/build/target/release/concordium-rosetta" ]

# Copy binary to slim image.
FROM ${base_image}
Expand Down

0 comments on commit b7bfbe0

Please sign in to comment.