subhrajit-mohanty commited on
Commit
cd8d4fc
·
verified ·
1 Parent(s): a00d48d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.9-bullseye
2
 
3
- WORKDIR /home/mlflow
4
 
5
  RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - \
6
  && apt-get install -y --no-install-recommends nodejs \
@@ -10,15 +10,15 @@ RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - \
10
  && npm install --global yarn \
11
  # protoc
12
  && wget https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip -O /tmp/protoc.zip \
13
- && mkdir -p /home/mlflow/.local \
14
- && unzip /tmp/protoc.zip -d /home/mlflow/.local/protoc \
15
  && rm /tmp/protoc.zip \
16
- && chmod -R +x /home/mlflow/.local/protoc \
17
  # adding an unprivileged user
18
  && groupadd --gid 10001 mlflow \
19
  && useradd --uid 10001 --gid mlflow --shell /bin/bash --create-home mlflow
20
 
21
- ENV PATH="/home/mlflow/.local/protoc/bin:$PATH"
22
 
23
  # the "mlflow" user created above, represented numerically for optimal compatibility with Kubernetes security policies
24
  USER 10001
 
1
  FROM python:3.9-bullseye
2
 
3
+ WORKDIR /tmp
4
 
5
  RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - \
6
  && apt-get install -y --no-install-recommends nodejs \
 
10
  && npm install --global yarn \
11
  # protoc
12
  && wget https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip -O /tmp/protoc.zip \
13
+ && mkdir -p /tmp \
14
+ && unzip /tmp/protoc.zip -d /tmp/protoc \
15
  && rm /tmp/protoc.zip \
16
+ && chmod -R +x /tmp/protoc \
17
  # adding an unprivileged user
18
  && groupadd --gid 10001 mlflow \
19
  && useradd --uid 10001 --gid mlflow --shell /bin/bash --create-home mlflow
20
 
21
+ ENV PATH="/tmp/protoc/bin:$PATH"
22
 
23
  # the "mlflow" user created above, represented numerically for optimal compatibility with Kubernetes security policies
24
  USER 10001