Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -20,21 +20,21 @@ RUN apt-get update && apt-get install -y \
|
|
| 20 |
&& rm -rf /var/lib/apt/lists/*
|
| 21 |
|
| 22 |
# Install Go
|
| 23 |
-
RUN curl -sSL https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz -o go${GO_VERSION}.tar.gz \
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
|
| 28 |
# Set Go binary path
|
| 29 |
-
ENV PATH="/usr/local/go/bin:${PATH}"
|
| 30 |
|
| 31 |
# Install Hugo from source (Standard edition)
|
| 32 |
-
RUN go install github.com/gohugoio/hugo@${HUGO_VERSION}
|
| 33 |
|
| 34 |
# Install Python dependencies for Hugging Face
|
| 35 |
RUN pip install --no-cache-dir \
|
| 36 |
-
transformers \
|
| 37 |
-
torch \
|
| 38 |
huggingface_hub \
|
| 39 |
fastapi \
|
| 40 |
uvicorn
|
|
|
|
| 20 |
&& rm -rf /var/lib/apt/lists/*
|
| 21 |
|
| 22 |
# Install Go
|
| 23 |
+
# RUN curl -sSL https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz -o go${GO_VERSION}.tar.gz \
|
| 24 |
+
# && tar -xvzf go${GO_VERSION}.tar.gz \
|
| 25 |
+
# && mv go /usr/local/ \
|
| 26 |
+
# && rm go${GO_VERSION}.tar.gz
|
| 27 |
|
| 28 |
# Set Go binary path
|
| 29 |
+
# ENV PATH="/usr/local/go/bin:${PATH}"
|
| 30 |
|
| 31 |
# Install Hugo from source (Standard edition)
|
| 32 |
+
# RUN go install github.com/gohugoio/hugo@${HUGO_VERSION}
|
| 33 |
|
| 34 |
# Install Python dependencies for Hugging Face
|
| 35 |
RUN pip install --no-cache-dir \
|
| 36 |
+
# transformers \
|
| 37 |
+
# torch \
|
| 38 |
huggingface_hub \
|
| 39 |
fastapi \
|
| 40 |
uvicorn
|