Skip to content

Commit

Permalink
Update the base image to Ubuntu 24.04
Browse files Browse the repository at this point in the history
Update the base image to Ubuntu 24.04 from 22.04.
  • Loading branch information
jsdanielh committed Jan 15, 2025
1 parent 3e01f70 commit 032acd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#syntax=docker/dockerfile:1.7-labs
FROM ubuntu:22.04 AS build
FROM ubuntu:24.04 AS build

# Install build dependencies in a single layer to reduce the number of image layers.
RUN apt-get update && \
Expand All @@ -16,7 +16,7 @@ COPY ./ core-rs-albatross
RUN cd core-rs-albatross && \
cargo build --release

FROM ubuntu:22.04
FROM ubuntu:24.04

# Install dependencies in a single layer to reduce the number of image layers.
RUN apt-get update && \
Expand All @@ -25,7 +25,7 @@ RUN apt-get update && \

# Run as an unprivileged user, combining commands to reduce layers.
RUN groupadd --system --gid 1001 nimiq && \
adduser --system --home /home/nimiq --uid 1001 --gid 1001 nimiq
useradd --system --home /home/nimiq --uid 1001 --gid 1001 nimiq

# Switch to the unprivileged user and set working directory in one layer.
USER nimiq
Expand Down

0 comments on commit 032acd6

Please sign in to comment.