Skip to content

Commit e443aa9

Browse files
authored
Create Dockerfile
1 parent 6a2fcdd commit e443aa9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# 使用轻量级基础镜像
2+
FROM alpine:latest
3+
4+
# 安装必要工具(如 shell 和 ls 命令)
5+
RUN apk add --no-cache bash coreutils
6+
7+
# 将仓库内容复制到 /app 目录
8+
COPY . /app
9+
10+
# 设置工作目录
11+
WORKDIR /app
12+
13+
# 默认启动命令:打印欢迎信息和 /app 目录内容
14+
CMD ["bash", "-c", "echo 'Hello from Docker image' && ls -la /app"]

0 commit comments

Comments
 (0)