subhrajit-mohanty commited on
Commit
f128425
·
verified ·
1 Parent(s): 664759a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM minio/minio:latest
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -8,7 +8,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
8
  ca-certificates \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Install MinIO client for creating the bucket
 
 
 
 
12
  RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc \
13
  && chmod +x mc \
14
  && mv mc /usr/local/bin/mc
@@ -34,7 +38,7 @@ RUN mkdir -p /tmp/minio-data /tmp/mlflow-data
34
 
35
  # Create a setup script
36
  RUN echo '#!/bin/bash \n\
37
- minio server /minio-data --console-address ":9001" & \n\
38
  sleep 5 \n\
39
  # Configure MinIO client and create bucket \n\
40
  mc alias set myminio http://localhost:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} \n\
 
1
+ FROM python:3.9-slim
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
8
  ca-certificates \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Install MinIO server and client
12
+ RUN wget https://dl.min.io/server/minio/release/linux-amd64/minio \
13
+ && chmod +x minio \
14
+ && mv minio /usr/local/bin/minio
15
+
16
  RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc \
17
  && chmod +x mc \
18
  && mv mc /usr/local/bin/mc
 
38
 
39
  # Create a setup script
40
  RUN echo '#!/bin/bash \n\
41
+ minio server /tmp/minio-data --console-address ":9001" & \n\
42
  sleep 5 \n\
43
  # Configure MinIO client and create bucket \n\
44
  mc alias set myminio http://localhost:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} \n\