gossa/support/build.Dockerfile
Tim Eichholz f1dc8280f5
Dockerfile updates (#77)
* 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
2022-04-01 13:51:26 +02:00

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"