Skip to content

Commit d49cdb4

Browse files
committed
Update Docker source images
Use 'ubuntu:22.04' instead of 'ubuntu:latest'.
1 parent b105a4a commit d49cdb4

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

mithril-aggregator/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
###############################
22
# STEP 1: build rust executable
33
###############################
4-
FROM ubuntu:latest AS rustbuilder
4+
FROM ubuntu:22.04 AS rustbuilder
55

66
# Upgrade and install build base
77
RUN apt-get update && apt-get install -y libssl-dev curl wget build-essential pkg-config make m4
@@ -14,6 +14,7 @@ RUN cargo --version
1414
# Create appuser
1515
RUN adduser --no-create-home --disabled-password appuser
1616

17+
# Set workdir
1718
WORKDIR /app
1819

1920
# Copy local dependencies
@@ -38,7 +39,7 @@ RUN cargo build --release
3839
###############################
3940
# STEP 2: build a small image
4041
###############################
41-
FROM ubuntu:latest
42+
FROM ubuntu:22.04
4243

4344
# Upgrade
4445
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget sqlite3 && rm -rf /var/lib/apt/lists/*

mithril-aggregator/Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Creates a docker image to run an executable built outside of the image
22
# This relies on the fact the mithril-aggregator executable has been built
33
# on a debian-compatible x86-64 environment
4-
FROM ubuntu:latest
4+
FROM ubuntu:22.04
55

66
# Upgrade
77
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget sqlite3 && rm -rf /var/lib/apt/lists/*

mithril-client/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
###############################
22
# STEP 1: build rust executable
33
###############################
4-
FROM ubuntu:latest AS rustbuilder
4+
FROM ubuntu:22.04 AS rustbuilder
55

66
# Upgrade and install build base
77
RUN apt-get update && apt-get install -y libssl-dev curl wget build-essential pkg-config make m4
@@ -14,6 +14,7 @@ RUN cargo --version
1414
# Create appuser
1515
RUN adduser --no-create-home --disabled-password appuser
1616

17+
# Set workdir
1718
WORKDIR /app
1819

1920
# Copy local dependencies
@@ -37,7 +38,7 @@ RUN cargo build --release
3738
###############################
3839
# STEP 2: build a small image
3940
###############################
40-
FROM ubuntu:latest
41+
FROM ubuntu:22.04
4142

4243
# Upgrade
4344
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget && rm -rf /var/lib/apt/lists/*

mithril-client/Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Creates a docker image to run an executable built outside of the image
22
# This relies on the fact the mithril-client executable has been built
33
# on a debian-compatible x86-64 environment
4-
FROM ubuntu:latest
4+
FROM ubuntu:22.04
55

66
# Upgrade
77
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget && rm -rf /var/lib/apt/lists/*

mithril-signer/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
###############################
22
# STEP 1: build rust executable
33
###############################
4-
FROM ubuntu:latest AS rustbuilder
4+
FROM ubuntu:22.04 AS rustbuilder
55

66
# Upgrade and install build base
77
RUN apt-get update && apt-get install -y libssl-dev curl wget build-essential pkg-config make m4
@@ -14,6 +14,7 @@ RUN cargo --version
1414
# Create appuser
1515
RUN adduser --no-create-home --disabled-password appuser
1616

17+
# Set workdir
1718
WORKDIR /app
1819

1920
# Copy local dependencies
@@ -38,7 +39,7 @@ RUN cargo build --release
3839
###############################
3940
# STEP 2: build a small image
4041
###############################
41-
FROM ubuntu:latest
42+
FROM ubuntu:22.04
4243

4344
# Upgrade
4445
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget sqlite3 && rm -rf /var/lib/apt/lists/*

mithril-signer/Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Creates a docker image to run an executable built outside of the image
22
# This relies on the fact the mithril-signer executable has been built
33
# on a debian-compatible x86-64 environment
4-
FROM ubuntu:latest
4+
FROM ubuntu:22.04
55

66
# Upgrade
77
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget sqlite3 && rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)