Add entrypoint, -dir parameter
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b867a586e5
commit
9f9ed9c61e
@ -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
2
docker/entrypoint.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/usr/bin/sleeper -dir ${SERVER_PATH:/data}
|
Loading…
x
Reference in New Issue
Block a user