Add entrypoint, -dir parameter
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tyler 2020-07-09 22:09:58 -04:00
parent b867a586e5
commit 9f9ed9c61e
2 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,9 @@ RUN cd /go/src; go build -o sleeper
FROM alpine FROM alpine
COPY --from=builder /go/src/sleeper /sleeper ADD docker/entrypoint.sh /entrypoint.sh
COPY --from=builder /go/src/sleeper /usr/bin/sleeper
CMD ["/sleeper"] RUN chmod +x /entrypoint.sh
ENTRYPOINT "/entrypoint.sh"

2
docker/entrypoint.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
/usr/bin/sleeper -dir ${SERVER_PATH:/data}