Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xqdoo00o committed May 7, 2024
2 parents 12337f3 + c27e754 commit 730bbb5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ENV CGO_ENABLED=0
# 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 @@ -26,6 +30,9 @@ 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 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 730bbb5

Please sign in to comment.