Skip to content

Commit

Permalink
Install curl in Docker containers
Browse files Browse the repository at this point in the history
To do automatic healthchecks with Docker, usually the `curl` command is used to check a certain HTTP endpoint. A curl command is also what Coolify auto-generates (no way to change that part). The healthchecks on my containers where failing because curl was not available in the container.
  • Loading branch information
sisou committed Sep 17, 2024
1 parent c336fd3 commit 4b699e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/deb.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN echo "deb [arch=amd64] http://repo.nimiq.com/deb stable main" > /etc/apt/sou

# Install nimiq and tini
RUN apt-get update \
&& apt-get --no-install-recommends -y install nimiq tini \
&& apt-get --no-install-recommends -y install nimiq tini curl \
&& rm -rf /var/lib/apt/lists/*

# We're going to execute nimiq in the context of its own user, what else?
Expand Down
2 changes: 1 addition & 1 deletion docker/git.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ FROM node:18-bookworm-slim

# Install tini - a tiny init for containers
RUN apt-get update \
&& apt-get --no-install-recommends -y install tini \
&& apt-get --no-install-recommends -y install tini curl \
&& rm -rf /var/lib/apt/lists/*

# We're going to execute nimiq in the context of its own user, what else?
Expand Down
2 changes: 1 addition & 1 deletion docker/local.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ FROM node:18-bookworm-slim

# Install tini - a tiny init for containers
RUN apt-get update \
&& apt-get --no-install-recommends -y install tini \
&& apt-get --no-install-recommends -y install tini curl \
&& rm -rf /var/lib/apt/lists/*

# We're going to execute nimiq in the context of its own user, what else?
Expand Down

0 comments on commit 4b699e9

Please sign in to comment.