Skip to content

Commit

Permalink
fix: fix healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
tedostrem committed Nov 6, 2024
1 parent 96cb6bb commit 2da1185
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ RUN mv target/release/main /usr/local/bin/rustygate

FROM --platform=$TARGETPLATFORM alpine:3.19

# Install only ca-certificates for HTTPS requests
RUN apk add --no-cache ca-certificates
# Install ca-certificates and curl in the final image
RUN apk add --no-cache \
ca-certificates \
curl

COPY --from=builder /usr/local/bin/rustygate /usr/local/bin/

Expand Down
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ services:
platforms:
- "linux/amd64"
- "linux/arm64"
# Comment out image until it's publicly available
# image: ghcr.io/3loc/rustygate:latest
image: ghcr.io/3loc/rustygate:latest
ports:
- "${PORT:-8080}:8080"
environment:
Expand All @@ -26,7 +25,7 @@ services:
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
start_period: 30s

tests:
build:
Expand All @@ -35,8 +34,7 @@ services:
platforms:
- "linux/amd64"
- "linux/arm64"
# Comment out image until it's published
# image: ghcr.io/3loc/rustygate-test:latest
image: ghcr.io/3loc/rustygate-test:latest
environment:
- RUSTYGATE_ENDPOINT=http://rustygate:8080
- OPENAI_API_KEY=${OPENAI_API_KEY}
Expand Down

0 comments on commit 2da1185

Please sign in to comment.