diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index edacfd6..42fb77c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,13 +3,13 @@ { "name": "Go", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/go:1-1.21-bullseye", + "image": "mcr.microsoft.com/devcontainers/go:1-1.21-bullseye@sha256:0ea3913135923a684b37f9e75a1e9adbb14551199244656b77f516c4c0c6d5bc", "containerEnv": { "SHELL": "/bin/zsh" }, "features": { - "ghcr.io/devcontainers/features/docker-in-docker:2": {}, - "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { + "ghcr.io/devcontainers/features/docker-in-docker:2@sha256:503f23cd692325b3cbb8c20a0ecfabb3444b0c786b363e0c82572bd7d71dc099": {}, + "ghcr.io/rocker-org/devcontainer-features/apt-packages:1@sha256:87a4d7750a596a5db034ba8508782f31aebdc2ffe955c66aaecb33d9de2ecdae": { "packages": "telnet" } }, diff --git a/Dockerfile b/Dockerfile index eb0254c..2b87c2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.6 as alpine +FROM alpine:3.19@sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b as alpine RUN apk add -U --no-cache ca-certificates diff --git a/Dockerfile.build b/Dockerfile.build index 394c24a..40aa5a9 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -1,4 +1,4 @@ -FROM golang:1.21.5-alpine as build +FROM golang:1.22.2-alpine@sha256:cdc86d9f363e8786845bea2040312b4efa321b828acdeb26f393faa864d887b0 as build WORKDIR /app