Akshar2325 commited on
Commit
2e96828
·
1 Parent(s): 3d83ed9

fix: update Dockerfile comments and permissions for clarity and correctness

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -11,14 +11,15 @@ RUN apt-get update && apt-get install -y \
11
  procps \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # Copy RustFS binary from official image
15
- COPY --from=rustfs_base /usr/local/bin/rustfs /usr/local/bin/rustfs
16
 
17
  # Install MinIO Client (mc) for bucket management
18
  RUN curl -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && \
19
- chmod +x /usr/local/bin/mc
 
20
 
21
- # Create directories
22
  RUN mkdir -p /data /var/log/rustfs && chmod 777 /data
23
 
24
  # Copy configuration files
 
11
  procps \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # Copy RustFS binary from official image (it's at /app/rustfs)
15
+ COPY --from=rustfs_base /app/rustfs /usr/local/bin/rustfs
16
 
17
  # Install MinIO Client (mc) for bucket management
18
  RUN curl -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && \
19
+ chmod +x /usr/local/bin/mc && \
20
+ chmod +x /usr/local/bin/rustfs
21
 
22
+ # Create directories with proper permissions
23
  RUN mkdir -p /data /var/log/rustfs && chmod 777 /data
24
 
25
  # Copy configuration files