Skip to content

Commit

Permalink
Revert "adding CA certificates"
Browse files Browse the repository at this point in the history
This reverts commit 63b7783.
  • Loading branch information
bi1101 committed May 10, 2024
1 parent ba6dc1c commit c32ad13
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ WORKDIR /tls
# Set the working directory
WORKDIR /app

# update CA certificates
RUN apk update && apk upgrade && apk add --no-cache ca-certificates
RUN update-ca-certificates

# Copy the Go Modules manifests (go.mod and go.sum files)
COPY go.mod go.sum ./

Expand All @@ -32,8 +28,7 @@ FROM scratch
# Set the working directory
WORKDIR /app

# Copy CA certificates from the builder stage
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY ./ca-certificates.crt /etc/ssl/certs/

# Copy the built Go binary from the builder stage
COPY --from=builder /app/ChatGPT-To-API /app/ChatGPT-To-API
Expand Down

0 comments on commit c32ad13

Please sign in to comment.