mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00: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:
parent
834a3378e9
commit
c6eb34848d
2 changed files with 17 additions and 0 deletions
|
@ -102,6 +102,7 @@ dockers:
|
|||
- restic/rest-server:{{ .Version }}
|
||||
build_flag_templates:
|
||||
- "--pull"
|
||||
dockerfile: "Dockerfile.goreleaser"
|
||||
extra_files:
|
||||
- docker/create_user
|
||||
- docker/delete_user
|
||||
|
|
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" ]
|
Loading…
Add table
Add a link
Reference in a new issue