Feature/upgrade obs docker (#364)

* upgrade docker config

* upgrade obs.toml

* modify dockerfile image from alpine to ubuntu
This commit is contained in:
houseme
2025-04-26 22:36:38 +08:00
committed by GitHub
parent 05f1412323
commit 9590d99e7c
5 changed files with 44 additions and 28 deletions
+6 -2
View File
@@ -1,4 +1,4 @@
FROM alpine:latest
FROM ubuntu:latest
# RUN apk add --no-cache <package-name>
# 如果 rustfs 有依赖,可以在这里添加,例如:
@@ -7,7 +7,11 @@ FROM alpine:latest
WORKDIR /app
COPY ./target/x86_64-unknown-linux-musl/release/rustfs /app/rustfs
# 创建与 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
COPY ./target/x86_64-unknown-linux-gnu/release/rustfs /app/rustfs
RUN chmod +x /app/rustfs