Skip to content

Commit

Permalink
feat: update Dockerfile to use debian:12.5-slim and streamline packag…
Browse files Browse the repository at this point in the history
…e installation
  • Loading branch information
Gyarbij committed Dec 20, 2024
1 parent 65db36c commit fe58b8a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@ COPY . .
RUN go get github.com/joho/godotenv
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o azure-oai-proxy .

# Use debian:12-slim instead of distroless for installing additional tools
FROM debian:12-slim
COPY --from=builder /build/azure-oai-proxy /
FROM debian:12.5-slim

# Install required packages
RUN apt-get update && \
apt-get install -y ca-certificates openssh-client curl && \
curl -sSL https://sdk.cloud.google.com | bash && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y ca-certificates openssh-client curl

RUN curl -sSL https://sdk.cloud.google.com | bash
ENV PATH="$PATH:/root/google-cloud-sdk/bin"
RUN gcloud init

COPY --from=builder /build/azure-oai-proxy /

# Set the working directory for the service account key
WORKDIR /app

EXPOSE 11437
ENTRYPOINT ["/azure-oai-proxy"]

0 comments on commit fe58b8a

Please sign in to comment.