Fix docker container setup for goreleaser

The expected approach is that the binary built by goreleaser is added to
the docker container.
This commit is contained in:
Michael Eischer
2023-04-25 19:33:10 +02:00
committed by Alexander Neumann
parent e8a839673f
commit 4576e1bc12
2 changed files with 17 additions and 0 deletions

16
Dockerfile.goreleaser Normal file
View File

@@ -0,0 +1,16 @@
FROM alpine
ENV DATA_DIRECTORY /data
ENV PASSWORD_FILE /data/.htpasswd
RUN apk add --no-cache --update apache2-utils
COPY docker/create_user /usr/bin/
COPY docker/delete_user /usr/bin/
COPY docker/entrypoint.sh /entrypoint.sh
COPY rest-server /usr/bin
VOLUME /data
EXPOSE 8000
CMD [ "/entrypoint.sh" ]