improve code for dockerfile

This commit is contained in:
houseme
2025-04-03 01:59:28 +08:00
parent 5de28e6e7e
commit 4136dd5393
4 changed files with 17 additions and 19 deletions
+1 -3
View File
@@ -3,12 +3,10 @@ FROM alpine:latest
# RUN apk add --no-cache <package-name>
# 如果 rustfs 有依赖,可以在这里添加,例如:
# RUN apk add --no-cache openssl
# RUN apk add --no-cache bash # 安装 Bash
WORKDIR /app
# 创建与 RUSTFS_VOLUMES 一致的目录
# RUN mkdir -p /root/data/target/volume/test1 /root/data/target/volume/test2 /root/data/target/volume/test3 /root/data/target/volume/test4
COPY ./target/x86_64-unknown-linux-musl/release/rustfs /app/rustfs
RUN chmod +x /app/rustfs