mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
- use exec in entrypoint.sh, get rid of extra shell process - use CMD instead of ENTRYPOINT, so image can be run with /bin/sh arg
17 lines
259 B
Docker
17 lines
259 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 80
|
|
|
|
COPY docker/entrypoint.sh /entrypoint.sh
|
|
|
|
CMD [ "/entrypoint.sh" ]
|