Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Winspain committed Dec 7, 2023
1 parent b8c8b2c commit 21addd6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lotteryGo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 21addd6

Please sign in to comment.