Skip to content

Commit

Permalink
Simplify dev dockerfiles by using rust base images
Browse files Browse the repository at this point in the history
  • Loading branch information
Alenar committed Jul 11, 2023
1 parent da39623 commit 7e38bbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 33 deletions.
12 changes: 1 addition & 11 deletions mithril-aggregator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
###############################
# STEP 1: build rust executable
###############################
FROM ubuntu:20.04 AS rustbuilder

ENV DEBIAN_FRONTEND noninteractive

# Upgrade and install build base
RUN apt-get update && apt-get install -y libssl-dev curl wget build-essential pkg-config make m4

# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo --version
FROM rust:bullseye AS rustbuilder

# Create appuser
RUN adduser --no-create-home --disabled-password appuser
Expand Down
12 changes: 1 addition & 11 deletions mithril-client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
###############################
# STEP 1: build rust executable
###############################
FROM ubuntu:20.04 AS rustbuilder

ENV DEBIAN_FRONTEND noninteractive

# Upgrade and install build base
RUN apt-get update && apt-get install -y libssl-dev curl wget build-essential pkg-config make m4

# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo --version
FROM rust:bullseye AS rustbuilder

# Create appuser
RUN adduser --no-create-home --disabled-password appuser
Expand Down
12 changes: 1 addition & 11 deletions mithril-signer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
###############################
# STEP 1: build rust executable
###############################
FROM ubuntu:20.04 AS rustbuilder

ENV DEBIAN_FRONTEND noninteractive

# Upgrade and install build base
RUN apt-get update && apt-get install -y libssl-dev curl wget build-essential pkg-config make m4

# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo --version
FROM rust:bullseye AS rustbuilder

# Create appuser
RUN adduser --no-create-home --disabled-password appuser
Expand Down

0 comments on commit 7e38bbf

Please sign in to comment.