Skip to content

Commit

Permalink
Update Dockerfile to fix health check reliant on curl binary
Browse files Browse the repository at this point in the history
Healthcheck in https://github.com/getlago/lago/blob/main/docker-compose.yml for lago-api relies on curl binary existing in lago-api docker image (it wasn't included). Docker currently floods log files with a failure message: Health check for container x error: OCI runtime exec failed: exec failed: unable to start container process: exec: \"curl\": executable file not found in $PATH: unknown"
  • Loading branch information
zeeshanmuhammad authored Jan 20, 2024
1 parent f5634fb commit b7b2f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
COPY ./Gemfile /app/Gemfile
COPY ./Gemfile.lock /app/Gemfile.lock

RUN apt update -qq && apt install nodejs build-essential git pkg-config libpq-dev -y
RUN apt update -qq && apt install nodejs build-essential git pkg-config libpq-dev curl -y

ENV BUNDLER_VERSION='2.4.21'
RUN gem install bundler --no-document -v '2.4.21'
Expand All @@ -23,7 +23,7 @@ ARG SEGMENT_WRITE_KEY
ARG GOCARDLESS_CLIENT_ID
ARG GOCARDLESS_CLIENT_SECRET

RUN apt update -qq && apt install git libpq-dev -y
RUN apt update -qq && apt install git libpq-dev curl -y

ENV SEGMENT_WRITE_KEY $SEGMENT_WRITE_KEY
ENV GOCARDLESS_CLIENT_ID $GOCARDLESS_CLIENT_ID
Expand Down

0 comments on commit b7b2f3d

Please sign in to comment.