Fix container build failure
All checks were successful
/ docker (push) Successful in 1m23s

This commit is contained in:
Melody Becker 2025-03-25 12:12:35 +01:00
parent dc317a9bcb
commit 90bfb3f950

View file

@ -1,18 +1,12 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM golang:1.23 AS build-stage FROM docker.io/library/golang:1.23 AS build-stage
WORKDIR /app WORKDIR /app
COPY go.mod ./ COPY go.mod ./
COPY go.sum ./ COPY go.sum ./
RUN go mod download RUN go mod download
COPY *.go ./ COPY . .
COPY ./templates/ ./templates/
COPY ./well-known/ ./well-known/
COPY ./static/ ./static/
COPY humans.txt ./
COPY robots.txt ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /mstar RUN CGO_ENABLED=0 GOOS=linux go build -o /mstar
FROM scratch AS build-release-stage FROM scratch AS build-release-stage