File tree 6 files changed +13
-13
lines changed
6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu
1
+ FROM ubuntu@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab
2
2
RUN apt-get update && apt-get install -yq ca-certificates
3
3
WORKDIR /app
4
4
ADD bin build
Original file line number Diff line number Diff line change 1
1
# Go build
2
- FROM golang:1.23 AS go-build
2
+ FROM golang:1.23@sha256:574185e5c6b9d09873f455a7c205ea0514bfd99738c5dc7750196403a44ed4b7 AS go-build
3
3
4
4
# Add known_hosts entries for GitHub and GitLab
5
5
RUN mkdir ~/.ssh
@@ -24,7 +24,7 @@ ARG LDFLAGS="-X localbuild=true"
24
24
RUN --mount=type=cache,target=/root/.cache/go-build LDFLAGS=${LDFLAGS##-X localbuild=true} GIT_COMMIT=$GIT_COMMIT make gitops-bucket-server
25
25
26
26
# Distroless
27
- FROM gcr.io/distroless/base AS runtime
27
+ FROM gcr.io/distroless/base@sha256:e9d0321de8927f69ce20e39bfc061343cce395996dfc1f0db6540e5145bc63a5 AS runtime
28
28
COPY --from=go-build /app/bin/gitops-bucket-server /gitops-bucket-server
29
29
COPY --from=go-build /root/.ssh/known_hosts /root/.ssh/known_hosts
30
30
Original file line number Diff line number Diff line change 1
1
# UI build
2
- FROM node:16-bullseye AS ui
2
+ FROM node:16-bullseye@sha256:cd59a61258b82b86c1ff0ead50c8a689f6c3483c5ed21036e11ee741add419eb AS ui
3
3
RUN apt-get update -y && apt-get install -y build-essential
4
4
RUN mkdir -p /home/app && chown -R node:node /home/app
5
5
WORKDIR /home/app
@@ -15,7 +15,7 @@ COPY --chown=node:node ui /home/app/ui
15
15
RUN --mount=type=cache,target=/home/app/ui/.parcel-cache make ui
16
16
17
17
# Go build
18
- FROM golang:1.23 AS go-build
18
+ FROM golang:1.23@sha256:574185e5c6b9d09873f455a7c205ea0514bfd99738c5dc7750196403a44ed4b7 AS go-build
19
19
20
20
# Add known_hosts entries for GitHub and GitLab
21
21
RUN mkdir ~/.ssh
@@ -40,7 +40,7 @@ ARG LDFLAGS="-X localbuild=true"
40
40
RUN --mount=type=cache,target=/root/.cache/go-build LDFLAGS=${LDFLAGS##-X localbuild=true} GIT_COMMIT=$GIT_COMMIT make gitops-server
41
41
42
42
# Distroless
43
- FROM gcr.io/distroless/base AS runtime
43
+ FROM gcr.io/distroless/base@sha256:e9d0321de8927f69ce20e39bfc061343cce395996dfc1f0db6540e5145bc63a5 AS runtime
44
44
COPY --from=ui /home/app/bin/dist/ /dist/
45
45
COPY --from=go-build /app/bin/gitops-server /gitops-server
46
46
COPY --from=go-build /root/.ssh/known_hosts /root/.ssh/known_hosts
Original file line number Diff line number Diff line change 1
- ARG FLUX_VERSION=2.3 .0
1
+ ARG FLUX_VERSION=2.4 .0
2
2
ARG FLUX_CLI=ghcr.io/fluxcd/flux-cli:v$FLUX_VERSION
3
3
4
4
# Alias for flux
5
- FROM $FLUX_CLI AS flux
5
+ FROM $FLUX_CLI@sha256:a9cb966cddc1a0c56dc0d57dda485d9477dd397f8b45f222717b24663471fd1f AS flux
6
6
7
7
# Go build
8
- FROM golang:1.23 AS go-build
8
+ FROM golang:1.23@sha256:574185e5c6b9d09873f455a7c205ea0514bfd99738c5dc7750196403a44ed4b7 AS go-build
9
9
10
10
# Add known_hosts entries for GitHub and GitLab
11
11
RUN mkdir ~/.ssh
@@ -28,7 +28,7 @@ ARG GIT_COMMIT="_unset_"
28
28
RUN LDFLAGS=$LDFLAGS GIT_COMMIT=$GIT_COMMIT make gitops
29
29
30
30
# Distroless
31
- FROM gcr.io/distroless/base AS runtime
31
+ FROM gcr.io/distroless/base@sha256:e9d0321de8927f69ce20e39bfc061343cce395996dfc1f0db6540e5145bc63a5 AS runtime
32
32
COPY --from=flux /usr/local/bin/flux /usr/local/bin/flux
33
33
COPY --from=go-build /app/bin/gitops /gitops
34
34
COPY --from=go-build /root/.ssh/known_hosts /root/.ssh/known_hosts
Original file line number Diff line number Diff line change 1
- FROM golang:1.20
1
+ FROM golang:1.23@sha256:574185e5c6b9d09873f455a7c205ea0514bfd99738c5dc7750196403a44ed4b7
2
2
RUN apt-get update
3
3
RUN apt-get -y install curl gnupg
4
4
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
Original file line number Diff line number Diff line change 1
1
# # Base ########################################################################
2
2
# Use a larger node image to do the build for native deps (e.g., gcc, python)
3
- FROM node:lts AS base
3
+ FROM node:lts@sha256:35a5dd72bcac4bce43266408b58a02be6ff0b6098ffa6f5435aeea980a8951d7 AS base
4
4
5
5
# Reduce npm log spam and colour during install within Docker
6
6
ENV NPM_CONFIG_LOGLEVEL=warn
@@ -15,7 +15,7 @@ COPY --chown=node:node ./yarn.lock /home/node/app/
15
15
16
16
# # Development #################################################################
17
17
# Define a development target that installs devDeps and runs in dev mode
18
- FROM base AS development
18
+ FROM base@sha256:35a5dd72bcac4bce43266408b58a02be6ff0b6098ffa6f5435aeea980a8951d7 AS development
19
19
WORKDIR /home/node/app
20
20
# Install (not ci) with dependencies, and for Linux vs. Linux Musl (which we use for -alpine)
21
21
RUN npm install
You can’t perform that action at this time.
0 commit comments