mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
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:
committed by
Alexander Neumann
parent
e8a839673f
commit
4576e1bc12
16
Dockerfile.goreleaser
Normal file
16
Dockerfile.goreleaser
Normal 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" ]
|
||||
Reference in New Issue
Block a user