mirror of https://github.com/EasyDarwin/EasyDarwin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
307 B
22 lines
307 B
1 year ago
|
# 使用 Go 语言官方基础镜像
|
||
|
FROM golang:latest
|
||
|
|
||
|
# 设置工作目录
|
||
|
WORKDIR /app
|
||
|
|
||
|
# 复制所有文件到工作目录
|
||
|
COPY . .
|
||
|
|
||
|
# 初始化 Go module
|
||
|
RUN go mod init
|
||
|
|
||
|
# 构建应用
|
||
|
RUN go build -o easydarwin .
|
||
|
|
||
|
# 暴露所需的端口
|
||
|
EXPOSE 554
|
||
|
EXPOSE 10008
|
||
|
|
||
|
# 启动应用
|
||
|
CMD ["./easydarwin"]
|