mirror of
https://github.com/pldubouilh/gossa
synced 2025-12-06 08:22:32 +01:00
* Added VERB environment variable for enabling verbosity in the Docker container * pin the versions for golang and alpine at their current latest * move the entrypoint script to a separate file, removed EXPOSE command from Dockerfile
10 lines
395 B
Docker
10 lines
395 B
Docker
FROM golang:1.18 as builder
|
|
COPY . /gossaSrc
|
|
RUN cd /gossaSrc && make
|
|
|
|
FROM alpine:3.15
|
|
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
|
|
COPY ./support/entrypoint.sh /entrypoint.sh
|
|
COPY --from=builder /gossaSrc/gossa /gossa
|
|
ENTRYPOINT "/entrypoint.sh"
|