Spaces:
Running
on
T4
Running
on
T4
sparkleman
commited on
Commit
·
b6e426f
1
Parent(s):
9b9e15b
UPDATE: Dockerfile prevent cache
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -4,9 +4,11 @@ RUN apk update && apk upgrade && \
|
|
| 4 |
apk add --no-cache bash git openssh curl rust cargo
|
| 5 |
|
| 6 |
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
|
|
| 7 |
|
| 8 |
WORKDIR /app
|
| 9 |
|
|
|
|
| 10 |
RUN git clone https://github.com/SolomonLeon/web-rwkv-realweb.git /app
|
| 11 |
|
| 12 |
WORKDIR /app/web-rwkv-wasm
|
|
@@ -14,7 +16,6 @@ RUN ["cargo", "install", "wasm-pack"]
|
|
| 14 |
|
| 15 |
WORKDIR /app
|
| 16 |
ENV PATH=/root/.cargo/bin:$PATH
|
| 17 |
-
RUN npm install -g pnpm
|
| 18 |
RUN pnpm install
|
| 19 |
RUN pnpm run build --mode target-rwkv-hf-space
|
| 20 |
|
|
|
|
| 4 |
apk add --no-cache bash git openssh curl rust cargo
|
| 5 |
|
| 6 |
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
| 7 |
+
RUN npm install -g pnpm
|
| 8 |
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
+
ADD https://api.github.com/repos/SolomonLeon/web-rwkv-realweb/git/refs/heads/ version.json
|
| 12 |
RUN git clone https://github.com/SolomonLeon/web-rwkv-realweb.git /app
|
| 13 |
|
| 14 |
WORKDIR /app/web-rwkv-wasm
|
|
|
|
| 16 |
|
| 17 |
WORKDIR /app
|
| 18 |
ENV PATH=/root/.cargo/bin:$PATH
|
|
|
|
| 19 |
RUN pnpm install
|
| 20 |
RUN pnpm run build --mode target-rwkv-hf-space
|
| 21 |
|