Spaces:
Running
on
T4
Running
on
T4
sparkleman
commited on
Commit
·
011a5bb
1
Parent(s):
9087afa
UPDATE rust cargo
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -1,14 +1,17 @@
|
|
| 1 |
FROM node:20-alpine AS FrontendBuilder
|
| 2 |
|
| 3 |
RUN apk update && apk upgrade && \
|
| 4 |
-
apk add --no-cache bash git openssh
|
| 5 |
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
RUN git clone https://github.com/SolomonLeon/web-rwkv-realweb.git /app
|
| 9 |
|
| 10 |
-
|
|
|
|
| 11 |
|
|
|
|
|
|
|
| 12 |
RUN pnpm install && pnpm run build
|
| 13 |
|
| 14 |
FROM nvidia/cuda:12.4.0-runtime-ubuntu22.04 AS Backend
|
|
|
|
| 1 |
FROM node:20-alpine AS FrontendBuilder
|
| 2 |
|
| 3 |
RUN apk update && apk upgrade && \
|
| 4 |
+
apk add --no-cache bash git openssh curl rust cargo
|
| 5 |
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
RUN git clone https://github.com/SolomonLeon/web-rwkv-realweb.git /app
|
| 9 |
|
| 10 |
+
WORKDIR /app/web-rwkv-wasm
|
| 11 |
+
RUN ["cargo", "install", "wasm-pack"]
|
| 12 |
|
| 13 |
+
WORKDIR /app
|
| 14 |
+
RUN npm install -g pnpm
|
| 15 |
RUN pnpm install && pnpm run build
|
| 16 |
|
| 17 |
FROM nvidia/cuda:12.4.0-runtime-ubuntu22.04 AS Backend
|