From 70ffa674d3dbc480c942e4d02d699b24f5be0628 Mon Sep 17 00:00:00 2001 From: musselman Date: Tue, 21 Nov 2023 14:59:09 -0600 Subject: [PATCH] Hail Mary 2 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e489d56..9052a8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Set the base image -FROM golang:1.21-alpine as builder +FROM golang:1.20-alpine as builder RUN apk --no-cache add ca-certificates git # Set the working directory WORKDIR /app @@ -11,7 +11,7 @@ COPY . . RUN go build -o notatio # Switch to the base Alpine image -FROM alpine:latest +FROM docker.io/library/alpine:3.18.4 # Set the user and working directory RUN adduser -D notatio @@ -31,6 +31,6 @@ RUN chmod +x wait.sh # Wait for 10 seconds before starting the application ENTRYPOINT ["sh", "-c", "sleep 10 && cd && ./notatio"] LABEL name=notatio version=latest - +EXPOSE 9991 HEALTHCHECK --interval=5m --timeout=3s \ CMD curl -f http://localhost/ || exit 1 \ No newline at end of file