aa / Dockerfile
leonsimon23's picture
Update Dockerfile
fea6146 verified
raw
history blame
539 Bytes
FROM golang:1.21
# 安装 git 和 go
RUN apt-get update && apt-get install -y git golang && rm -rf /var/lib/apt/lists/*
# 设置工作目录
WORKDIR /
# 设置环境变量
ENV GO111MODULE=on
ENV CGO_ENABLED=0
ENV PATH=$PATH:/go/bin
# 克隆 aurora 仓库
#RUN git clone https://github.com/renqabs/aa /aurora
RUN git clone https://github.com/aurora-develop/aurora /aurora
# 切换到 aurora 文件夹并构建项目
WORKDIR /aurora
RUN go build -o aurora
# 调整可执行权限
RUN chmod +x ./aurora
# 执行 aurora
CMD ["./aurora"]