diff --git a/Dockerfile b/Dockerfile index bd47e8b..bfaeef1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/docker-compose.yml b/docker-compose.yml index f882a96..f61193c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: @@ -26,7 +25,7 @@ services: interval: 30s timeout: 10s retries: 3 - start_period: 5s + start_period: 30s tests: build: @@ -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}