Skip to content

Commit 2eacc34

Browse files
Disable CMD as shell text
1 parent 1ccc23f commit 2eacc34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

alpine.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ COPY backup.sh env.sh init.sh /
4040

4141
VOLUME /backups
4242

43-
ENTRYPOINT ["/bin/sh", "-c"]
44-
CMD ["exec /init.sh"]
43+
ENTRYPOINT []
44+
CMD ["/init.sh"]
4545

4646
HEALTHCHECK --interval=5m --timeout=3s \
4747
CMD curl -f "http://localhost:$HEALTHCHECK_PORT/" || exit 1

debian.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ COPY backup.sh env.sh init.sh /
5454

5555
VOLUME /backups
5656

57-
ENTRYPOINT ["/bin/sh", "-c"]
58-
CMD ["exec /init.sh"]
57+
ENTRYPOINT []
58+
CMD ["/init.sh"]
5959

6060
HEALTHCHECK --interval=5m --timeout=3s \
6161
CMD curl -f "http://localhost:$HEALTHCHECK_PORT/" || exit 1

0 commit comments

Comments
 (0)