Skip to content

Commit 4256a87

Browse files
committed
add skypilot-alpine
1 parent e22782e commit 4256a87

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

images/skypilot-alpine/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# 使用最新的 Alpine Linux
2+
FROM alpine:latest
3+
4+
# 设置环境变量,避免交互式配置
5+
ENV TZ=UTC
6+
7+
# 安装软件包
8+
# 1. 更新包索引
9+
# 2. 启用 edge/community 仓库以获取更新的包
10+
# 3. 安装 Python 3、pip 和 SQLite
11+
# 4. 清理缓存以减小镜像体积
12+
RUN apk update && \
13+
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
14+
apk add --no-cache \
15+
python3 \
16+
py3-pip \
17+
sqlite \
18+
# 如果需要编译Python扩展,可能需要以下包
19+
# python3-dev \
20+
# gcc \
21+
# musl-dev \
22+
&& \
23+
# 验证版本
24+
python3 --version && \
25+
sqlite3 --version

images/skypilot-alpine/nametag

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
skypilot-alpine:pysqlite1.0

0 commit comments

Comments
 (0)