Archie Wood commited on
Commit
af01213
1 Parent(s): 6011a0c

reorder back

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -9
Dockerfile CHANGED
@@ -13,6 +13,8 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh \
13
  && rm -rf /var/lib/apt/lists/* \
14
  && rm nodesource_setup.sh
15
 
 
 
16
  # Build the app
17
  WORKDIR /usr/app
18
  COPY ./ /usr/app
@@ -22,15 +24,6 @@ RUN npm run sources && npm run build
22
 
23
  # Upload the app
24
 
25
- ## Install python3 and pip
26
- RUN apk add --no-cache python3 py3-pip
27
-
28
- ## Create and activate a virtual environment
29
- RUN python3 -m venv /venv
30
- ENV PATH="/venv/bin:$PATH"
31
-
32
- RUN pip install --upgrade "huggingface_hub[cli]"
33
-
34
  ## The site space name must be passed as an environment variable
35
  ## https://huggingface.co/docs/hub/spaces-sdks-docker#buildtime
36
  ARG STATIC_SPACE
 
13
  && rm -rf /var/lib/apt/lists/* \
14
  && rm nodesource_setup.sh
15
 
16
+ RUN pip install --upgrade "huggingface_hub[cli]"
17
+
18
  # Build the app
19
  WORKDIR /usr/app
20
  COPY ./ /usr/app
 
24
 
25
  # Upload the app
26
 
 
 
 
 
 
 
 
 
 
27
  ## The site space name must be passed as an environment variable
28
  ## https://huggingface.co/docs/hub/spaces-sdks-docker#buildtime
29
  ARG STATIC_SPACE