fix Dockerfile

This commit is contained in:
loverustfs
2025-07-03 18:59:42 +08:00
parent 89035d3b3b
commit 65a731a243
+5 -4
View File
@@ -12,15 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM alpine:3.18 AS builder
RUN apk add -U --no-cache \
ca-certificates \
curl \
bash \
unzip \
a-certificates \
unzip
RUN curl -Lo /tmp/rustfs.zip https://dl.rustfs.com/artifacts/rustfs/rustfs-release-x86_64-unknown-linux-musl.latest.zip && \
unzip /tmp/rustfs.zip -d /tmp && \
@@ -28,9 +26,12 @@ RUN curl -Lo /tmp/rustfs.zip https://dl.rustfs.com/artifacts/rustfs/rustfs-relea
chmod +x /rustfs && \
rm -rf /tmp/*
FROM alpine:3.18
RUN apk add -U --no-cache \
ca-certificates \
bash
COPY --from=builder /rustfs /usr/local/bin/rustfs
ENV RUSTFS_ROOT_USER=rustfsadmin \