We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e22782e commit 4256a87Copy full SHA for 4256a87
images/skypilot-alpine/Dockerfile
@@ -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
@@ -0,0 +1 @@
+skypilot-alpine:pysqlite1.0
0 commit comments