Update Dockerfile
This commit is contained in:
parent
619d0f77d6
commit
c7c91b1160
@ -18,7 +18,7 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the Go application and output the binary to /app/ChatGPT-Proxy-V4
|
# Build the Go application and output the binary to /app/ChatGPT-Proxy-V4
|
||||||
RUN go build -o /app/ChatGPT-Proxy-V4 .
|
RUN go build -o /app/ChatGPT-To-API .
|
||||||
|
|
||||||
# Use a scratch image as the final distroless image
|
# Use a scratch image as the final distroless image
|
||||||
FROM scratch
|
FROM scratch
|
||||||
@ -27,10 +27,10 @@ FROM scratch
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the built Go binary from the builder stage
|
# Copy the built Go binary from the builder stage
|
||||||
COPY --from=builder /app/ChatGPT-Proxy-V4 /app/ChatGPT-Proxy-V4
|
COPY --from=builder /app/ChatGPT-To-API /app/ChatGPT-To-API
|
||||||
|
|
||||||
# Expose the port where the application is running
|
# Expose the port where the application is running
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
# Start the application
|
# Start the application
|
||||||
CMD [ "./ChatGPT-Proxy-V4" ]
|
CMD [ "./ChatGPT-To-API" ]
|
||||||
|
Reference in New Issue
Block a user