From 91a5a6443b5b430ec531cda40c417e356c8a57d8 Mon Sep 17 00:00:00 2001 From: Zherphy <1123678689@qq.com> Date: Thu, 10 Oct 2024 10:47:52 +0800 Subject: [PATCH 1/2] Modify: modify DockerFile modify DockerFile --- DockerFile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DockerFile b/DockerFile index f2d55ca..91d2403 100644 --- a/DockerFile +++ b/DockerFile @@ -2,8 +2,7 @@ FROM golang:1.21 as BUILDER WORKDIR /home COPY . . -RUN cd ./BigFiles && \ - go get github.com/akrylysov/algnhsa && \ +RUN go get github.com/akrylysov/algnhsa && \ go get github.com/sirupsen/logrus && \ go build ./BigFiles/main.go From 215459ef0ead8d39cf8f9777ef3767256f09686e Mon Sep 17 00:00:00 2001 From: Zherphy <1123678689@qq.com> Date: Fri, 11 Oct 2024 15:37:19 +0800 Subject: [PATCH 2/2] Docs: modify DockerFile modify DockerFile --- DockerFile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DockerFile b/DockerFile index 91d2403..800c9d8 100644 --- a/DockerFile +++ b/DockerFile @@ -11,7 +11,7 @@ LABEL maintainer="Zhou Yi 1123678689@qq.com" RUN useradd -s /bin/bash BigFiles USER BigFiles WORKDIR /home/BigFiles -COPY --chown=BigFiles:group --from=BUILDER /home/BigFiles /home/BigFiles/ +COPY --chown=BigFiles:group --from=BUILDER /home/main /home/BigFiles/main EXPOSE 5000 ENTRYPOINT ["/home/BigFiles/main"] \ No newline at end of file