Commit
·
8567251
1
Parent(s):
7d53c09
gnupg for gpg key management and gpg instead of apt-get
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -2,12 +2,13 @@
|
|
2 |
FROM continuumio/miniconda3
|
3 |
|
4 |
# Update packages and install necessary utilities
|
5 |
-
RUN apt-get update && apt-get install -y
|
|
|
6 |
|
7 |
-
# Install gcloud CLI
|
8 |
-
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg |
|
9 |
-
|
10 |
-
|
11 |
|
12 |
# Create a non-root user (Hugging Face requirement)
|
13 |
RUN useradd -m -u 1000 user
|
|
|
2 |
FROM continuumio/miniconda3
|
3 |
|
4 |
# Update packages and install necessary utilities
|
5 |
+
RUN apt-get update && apt-get install -y \
|
6 |
+
nano unzip curl gnupg software-properties-common
|
7 |
|
8 |
+
# Install gcloud CLI (Google Cloud SDK)
|
9 |
+
RUN curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg \
|
10 |
+
&& echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
|
11 |
+
&& apt-get update && apt-get install -y google-cloud-sdk
|
12 |
|
13 |
# Create a non-root user (Hugging Face requirement)
|
14 |
RUN useradd -m -u 1000 user
|