Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Fraccaroli committed Dec 13, 2023
1 parent 87fd5fb commit 331d469
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ COPY . /app
WORKDIR /app

# install protoc
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes protobuf-compiler libprotobuf-dev ca-certificates
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes protobuf-compiler libprotobuf-dev

# build app
RUN cargo build --release

# use a slim image
FROM debian:bullseye-slim

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes ca-certificates

# copy the runtime files
COPY --from=builder /app/target/release/namada-faucet /app/server
WORKDIR /app
Expand Down

0 comments on commit 331d469

Please sign in to comment.