mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00

So that rest-server can be started as non-root user. You can choose which port to expose, anyway.
16 lines
260 B
Docker
16 lines
260 B
Docker
FROM alpine:3.6
|
|
|
|
ENV DATA_DIRECTORY /data
|
|
ENV PASSWORD_FILE /data/.htpasswd
|
|
|
|
RUN apk add --no-cache --update apache2-utils
|
|
|
|
COPY rest-server docker/*_user /usr/bin/
|
|
|
|
VOLUME /data
|
|
|
|
EXPOSE 8000
|
|
|
|
COPY docker/entrypoint.sh /entrypoint.sh
|
|
|
|
CMD [ "/entrypoint.sh" ]
|