diff --git a/Dockerfile b/Dockerfile index 6be7121c..abe0af1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Start with a NodeJS base image that also contains yarn. -FROM node:22.8.0-alpine as nodejsbuilder +FROM node:22.8.0-alpine@sha256:bec0ea49c2333c429b62e74e91f8ba1201b060110745c3a12ff957cd51b363c6 as nodejsbuilder # Pass a tag, branch or a commit using build-arg. This allows a docker image to # be built from a specified Git state. The default image will use the Git tip of @@ -32,10 +32,7 @@ RUN apk add --no-cache --update alpine-sdk \ # The first stage is already done and all static assets should now be generated # in the app/build sub directory. -# If you change this value, please also update: -# /dev.Dockerfile -# /.github/workflows/main.yml -FROM golang:1.22.6-alpine as golangbuilder +FROM golang:1.22.6-alpine@sha256:1a478681b671001b7f029f94b5016aed984a23ad99c707f6a0ab6563860ae2f3 as golangbuilder # Instead of checking out from git again, we just copy the whole working # directory of the previous stage that includes the generated static assets. @@ -53,7 +50,7 @@ RUN apk add --no-cache --update alpine-sdk \ && make go-install-cli # Start a new, final image to reduce size. -FROM alpine as final +FROM alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d as final # Define a root volume for data persistence. VOLUME /root/.lnd diff --git a/dev.Dockerfile b/dev.Dockerfile index 528b4f83..fa61d30b 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -1,5 +1,5 @@ # Start with a NodeJS base image that also contains yarn. -FROM node:22.8.0-alpine as nodejsbuilder +FROM node:22.8.0-alpine@sha256:bec0ea49c2333c429b62e74e91f8ba1201b060110745c3a12ff957cd51b363c6 as nodejsbuilder # Copy in the local repository to build from. COPY . /go/src/github.com/lightninglabs/lightning-terminal @@ -10,10 +10,7 @@ RUN cd /go/src/github.com/lightninglabs/lightning-terminal/app \ # The first stage is already done and all static assets should now be generated # in the app/build sub directory. -# If you change this value, please also update: -# /Dockerfile -# /.github/workflows/main.yml -FROM golang:1.22.6-alpine as golangbuilder +FROM golang:1.22.6-alpine@sha256:1a478681b671001b7f029f94b5016aed984a23ad99c707f6a0ab6563860ae2f3 as golangbuilder # Instead of checking out from git again, we just copy the whole working # directory of the previous stage that includes the generated static assets. @@ -31,7 +28,7 @@ RUN apk add --no-cache --update alpine-sdk \ && make go-install-cli # Start a new, final image to reduce size. -FROM alpine as final +FROM alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d as final # Define a root volume for data persistence. VOLUME /root/.lnd diff --git a/litrpc/Dockerfile b/litrpc/Dockerfile index e60a23ae..ea2bfdf0 100644 --- a/litrpc/Dockerfile +++ b/litrpc/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22.6-bookworm +FROM golang:1.22.6-bookworm@sha256:d31e093e3aeaee68ccee6c4c96e554ef0f192ea37ae684d91b206bec17377f19 RUN apt-get update && apt-get install -y \ git \ diff --git a/make/builder.Dockerfile b/make/builder.Dockerfile index 8d7f91c9..62616561 100644 --- a/make/builder.Dockerfile +++ b/make/builder.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22.6-bookworm +FROM golang:1.22.6-bookworm@sha256:d31e093e3aeaee68ccee6c4c96e554ef0f192ea37ae684d91b206bec17377f19 MAINTAINER Olaoluwa Osuntokun diff --git a/proto/Dockerfile b/proto/Dockerfile index 69e14671..adc813a9 100644 --- a/proto/Dockerfile +++ b/proto/Dockerfile @@ -1,5 +1,5 @@ # Start with a NodeJS base image that also contains yarn. -FROM node:22.8.0-bookworm as nodejsbuilder +FROM node:22.8.0-bookworm@sha256:bd00c03095f7586432805dbf7989be10361d27987f93de904b1fc003949a4794 as nodejsbuilder RUN apt-get update && apt-get install -y \ git \ diff --git a/tools/Dockerfile b/tools/Dockerfile index 10283a84..c57b15e0 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22.6-bookworm +FROM golang:1.22.6-bookworm@sha256:d31e093e3aeaee68ccee6c4c96e554ef0f192ea37ae684d91b206bec17377f19 RUN apt-get update && apt-get install -y git ENV GOCACHE=/tmp/build/.cache