mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-21 19:20:40 +00:00
Use a stable tag for ubuntu in dockerfile (#3231)
## Issue Addressed N/A ## Proposed Changes Use stable version of ubuntu base image in dockerfile instead of using latest. This will help in narrowing down issues with docker images.
This commit is contained in:
parent
cc4b778b1f
commit
8e1305a3d2
@ -5,7 +5,7 @@ ARG FEATURES
|
|||||||
ENV FEATURES $FEATURES
|
ENV FEATURES $FEATURES
|
||||||
RUN cd lighthouse && make
|
RUN cd lighthouse && make
|
||||||
|
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:22.04
|
||||||
RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-recommends \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# This image is meant to enable cross-architecture builds.
|
# This image is meant to enable cross-architecture builds.
|
||||||
# It assumes the lighthouse binary has already been
|
# It assumes the lighthouse binary has already been
|
||||||
# compiled for `$TARGETPLATFORM` and moved to `./bin`.
|
# compiled for `$TARGETPLATFORM` and moved to `./bin`.
|
||||||
FROM --platform=$TARGETPLATFORM ubuntu:latest
|
FROM --platform=$TARGETPLATFORM ubuntu:22.04
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
@ -8,6 +8,6 @@ ARG PORTABLE
|
|||||||
ENV PORTABLE $PORTABLE
|
ENV PORTABLE $PORTABLE
|
||||||
RUN cd lighthouse && make install-lcli
|
RUN cd lighthouse && make install-lcli
|
||||||
|
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:22.04
|
||||||
RUN apt-get update && apt-get -y upgrade && apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get -y upgrade && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=builder /usr/local/cargo/bin/lcli /usr/local/bin/lcli
|
COPY --from=builder /usr/local/cargo/bin/lcli /usr/local/bin/lcli
|
||||||
|
Loading…
Reference in New Issue
Block a user