Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
FROM python:3.9-bullseye
|
2 |
|
3 |
-
WORKDIR /
|
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 /
|
14 |
-
&& unzip /tmp/protoc.zip -d /
|
15 |
&& rm /tmp/protoc.zip \
|
16 |
-
&& chmod -R +x /
|
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="/
|
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
|