mirror of
https://github.com/pldubouilh/gossa
synced 2025-12-06 08:22:32 +01:00
build: bump alpine version, add healthcheck
Signed-off-by: rare-magma <rare-magma@posteo.eu>
This commit is contained in:
parent
33c93fc0b4
commit
6b83e94d3a
1 changed files with 5 additions and 2 deletions
|
|
@ -1,10 +1,13 @@
|
||||||
FROM golang:1.18 as builder
|
FROM golang:1.18 as builder
|
||||||
|
WORKDIR /gossaSrc
|
||||||
COPY . /gossaSrc
|
COPY . /gossaSrc
|
||||||
RUN cd /gossaSrc && make
|
RUN make
|
||||||
|
|
||||||
FROM alpine:3.15
|
FROM docker.io/library/alpine:3.20
|
||||||
ENV UID="1000" GID="1000" HOST="0.0.0.0" PORT="8001" PREFIX="/" FOLLOW_SYMLINKS="false" SKIP_HIDDEN_FILES="true" DATADIR="/shared" READONLY="false" VERB="false"
|
ENV UID="1000" GID="1000" HOST="0.0.0.0" PORT="8001" PREFIX="/" FOLLOW_SYMLINKS="false" SKIP_HIDDEN_FILES="true" DATADIR="/shared" READONLY="false" VERB="false"
|
||||||
RUN apk add --no-cache su-exec
|
RUN apk add --no-cache su-exec
|
||||||
COPY ./support/entrypoint.sh /entrypoint.sh
|
COPY ./support/entrypoint.sh /entrypoint.sh
|
||||||
COPY --from=builder /gossaSrc/gossa /gossa
|
COPY --from=builder /gossaSrc/gossa /gossa
|
||||||
|
USER nobody
|
||||||
ENTRYPOINT "/entrypoint.sh"
|
ENTRYPOINT "/entrypoint.sh"
|
||||||
|
HEALTHCHECK --timeout=5s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider 127.0.0.1:8001 || exit 1
|
||||||
Loading…
Reference in a new issue