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