Hail Mary 2
This commit is contained in:
parent
f1fcd37ebd
commit
70ffa674d3
1 changed files with 3 additions and 3 deletions
|
@ -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
|
Loading…
Reference in a new issue