mirror of
https://github.com/YuWanTingbb/unofficial-gpt4.git
synced 2025-10-15 06:39:54 +00:00
更新 Dockerfile
This commit is contained in:
@@ -13,16 +13,16 @@ RUN chmod +x mvnw && \
|
|||||||
rm -rf /root/.m2
|
rm -rf /root/.m2
|
||||||
|
|
||||||
# Use Distroless as base image
|
# Use Distroless as base image
|
||||||
FROM container-registry.oracle.com/os/oraclelinux:8-slim
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk update \
|
RUN apk update \
|
||||||
&& apk upgrade \
|
&& apk upgrade \
|
||||||
&& apk add --no-cache tzdata
|
&& apk add --no-cache tzdata
|
||||||
|
|
||||||
# Copy the native executable into the containers
|
# Copy the native executable into the containers
|
||||||
COPY --from=builder /build/target/gpt-4-copilot /app
|
COPY --from=builder /build/target/gpt-4-copilot /config/gpt-4-copilot
|
||||||
|
|
||||||
# Set the entrypoint
|
# Set the entrypoint
|
||||||
ENTRYPOINT ["/app"]
|
ENTRYPOINT ["/config/gpt-4-copilot"]
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user