Skip to content

Commit

Permalink
feat(Dockerfile): removed production build + replaced yaml configs wi…
Browse files Browse the repository at this point in the history
…th mounts
  • Loading branch information
Trantorian1 committed Sep 24, 2024
1 parent 7129b59 commit 4a27e32
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN curl -fLS -o $SCARB_TARGET \
mv /usr/src/bin/scarb /bin

# Build the application in release mode
RUN cargo build --profile production
RUN cargo build --release

# Stage 2: Create the final runtime image
FROM debian:bookworm-slim
Expand All @@ -47,11 +47,11 @@ RUN apt-get -y update && \
WORKDIR /usr/local/bin

# Copy the compiled binary from the builder stage
COPY --from=builder /usr/src/madara/target/production/madara .
COPY --from=builder /usr/src/madara/crates/primitives/chain_config/presets \
crates/primitives/chain_config/presets
COPY --from=builder /usr/src/madara/crates/primitives/chain_config/resources \
crates/primitives/chain_config/resources
COPY --from=builder /usr/src/madara/target/release/madara .

# chain presets to be monted at startup
VOLUME crates/primitives/chain_config/presets
VOLUME crates/primitives/chain_config/resources

# Set the entrypoint
ENTRYPOINT ["./madara"]

0 comments on commit 4a27e32

Please sign in to comment.