Skip to content

Open-source status page, incident response and uptime monitoring

😭

Thibault Le Ouay7d82dc7bd3bc
diff --git a/.github/workflows/publish-checker.yml b/.github/workflows/publish-checker.yml
index 83ea40c1c..2ada1a4f5 100644
--- a/.github/workflows/publish-checker.yml
+++ b/.github/workflows/publish-checker.yml
@@ -55,7 +55,7 @@ jobs:
- name: Build and push
uses: depot/build-push-action@v1
with:
- file: private-location-image/Dockerfile
+ file: private-location
project: 9cknw183m8
context: apps/checker
tags: ghcr.io/openstatushq/private-location:latest
diff --git a/apps/checker/private-location b/apps/checker/private-location
new file mode 100644
index 000000000..aae64e0cb
--- /dev/null
+++ b/apps/checker/private-location
@@ -0,0 +1,31 @@
+FROM golang:1.25-alpine as builder
+
+WORKDIR /go/src/app
+
+RUN apk add --no-cache tzdata
+ENV TZ=UTC
+
+ENV CGO_ENABLED=0
+ENV GOOS=linux
+ENV GOARCH=amd64
+
+COPY go.* .
+RUN go mod download
+
+COPY . .
+RUN go build -trimpath -ldflags "-s -w" -o private ./cmd/private
+
+FROM scratch
+
+WORKDIR /opt/bin
+
+COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
+COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
+
+COPY --from=builder /go/src/app/private /opt/bin/private
+
+ENV TZ=UTC
+ENV USER=1000
+ENV GIN_MODE=release
+
+CMD [ "/opt/bin/private" ]