Add entrypoint, -dir parameter
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b867a586e5
commit
9f9ed9c61e
|
@ -6,6 +6,9 @@ RUN cd /go/src; go build -o sleeper
|
|||
|
||||
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"
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
/usr/bin/sleeper -dir ${SERVER_PATH:/data}
|
Loading…
Reference in New Issue