From 21addd67f0bb9e407225ae87b50d18d86b45c122 Mon Sep 17 00:00:00 2001 From: winspain Date: Thu, 7 Dec 2023 17:48:57 +0800 Subject: [PATCH] update Dockerfile --- lotteryGo/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lotteryGo/Dockerfile b/lotteryGo/Dockerfile index 6fdc44f..aafca5d 100644 --- a/lotteryGo/Dockerfile +++ b/lotteryGo/Dockerfile @@ -5,11 +5,10 @@ FROM golang:latest COPY . /app # 设置工作目录 -WORKDIR /app -RUN ls -l +WORKDIR /app/lotteryGo # 编译 Go 应用 -RUN go build -o main . +RUN go build -o lotteryGo/main . # 启动应用 CMD ["./main"] \ No newline at end of file