mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 09:40:32 +00:00
* upgrade docker config * upgrade obs.toml * modify dockerfile image from alpine to ubuntu
21 lines
602 B
Docker
21 lines
602 B
Docker
FROM ubuntu: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
|
|
COPY ./target/x86_64-unknown-linux-gnu/release/rustfs /app/rustfs
|
|
|
|
RUN chmod +x /app/rustfs
|
|
|
|
EXPOSE 9000
|
|
EXPOSE 9002
|
|
|
|
CMD ["/app/rustfs"] |