mirror of
https://github.com/oneclickvirt/ecs.git
synced 2025-12-24 12:37:53 +08:00
16 lines
556 B
Docker
16 lines
556 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM alpine:latest
|
|
# 安装必要的工具
|
|
RUN apk add --no-cache wget curl bash
|
|
RUN apk add --no-cache bind-tools
|
|
# --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main
|
|
RUN apk add --no-cache grep openssl ca-certificates uuidgen
|
|
RUN export noninteractive=true
|
|
# 下载并执行 goecs.sh 脚本
|
|
RUN curl -L https://raw.githubusercontent.com/oneclickvirt/ecs/master/goecs.sh -o goecs.sh && \
|
|
chmod +x goecs.sh && \
|
|
bash goecs.sh env && \
|
|
bash goecs.sh install
|
|
# 设置 goecs 为入口点
|
|
ENTRYPOINT ["goecs"]
|