first commit
This commit is contained in:
14
Dockerfile.abnormal
Normal file
14
Dockerfile.abnormal
Normal file
@@ -0,0 +1,14 @@
|
||||
# 使用轻量级的Alpine Linux作为基础镜像
|
||||
FROM alpine:latest
|
||||
|
||||
# 安装bash (Alpine默认没有bash)
|
||||
RUN apk add --no-cache bash
|
||||
|
||||
# 创建工作目录
|
||||
WORKDIR /app
|
||||
|
||||
# 复制脚本到容器中
|
||||
COPY abnormal.sh /app/
|
||||
|
||||
# 设置容器启动时执行的命令
|
||||
CMD ["/bin/bash","/app/abnormal.sh"]
|
||||
Reference in New Issue
Block a user