diff --git a/.docker/Dockerfile-test-hsm b/.docker/Dockerfile-test-hsm index cf0f60164d..5ce1169222 100644 --- a/.docker/Dockerfile-test-hsm +++ b/.docker/Dockerfile-test-hsm @@ -1,6 +1,4 @@ -# This file is only used for testing the HSM feature of Hydra. It is not used in production nor is it being -# distributed. -FROM golang:1.22-alpine3.21 AS builder +FROM golang:1.23-alpine3.21 AS builder RUN apk -U --no-cache --upgrade --latest add build-base git gcc bash @@ -13,10 +11,9 @@ COPY internal/httpclient/go.* ./internal/httpclient ENV CGO_ENABLED 1 RUN go mod download - COPY . . -FROM builder as build-hydra +RUN go build -tags sqlite,json1,hsm -o /usr/bin/hydra ENV HSM_ENABLED=true ENV HSM_LIBRARY=/usr/lib/softhsm/libsofthsm2.so