Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -4,16 +4,15 @@ FROM archlinux:latest
|
|
| 4 |
# 设置大陆时区
|
| 5 |
ENV TZ Asia/Shanghai
|
| 6 |
|
| 7 |
-
# 设置工作目录
|
| 8 |
-
WORKDIR /Web
|
| 9 |
-
|
| 10 |
# 将本地的所有文件复制到工作目录
|
| 11 |
-
COPY . .
|
| 12 |
|
| 13 |
# 安装依赖
|
| 14 |
-
RUN chmod -R 777 /Web
|
| 15 |
RUN pacman -Syu --noconfirm
|
| 16 |
RUN pacman -S --noconfirm nodejs npm
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
RUN npm install -g pnpm
|
| 18 |
RUN pnpm install -P
|
| 19 |
|
|
|
|
| 4 |
# 设置大陆时区
|
| 5 |
ENV TZ Asia/Shanghai
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
# 将本地的所有文件复制到工作目录
|
|
|
|
| 8 |
|
| 9 |
# 安装依赖
|
|
|
|
| 10 |
RUN pacman -Syu --noconfirm
|
| 11 |
RUN pacman -S --noconfirm nodejs npm
|
| 12 |
+
RUN pacman -S --noconfirm git
|
| 13 |
+
RUN git clone https://github.com/yusheng929/Web
|
| 14 |
+
WORKDIR /Web
|
| 15 |
+
RUN chmod -R 777 /Web
|
| 16 |
RUN npm install -g pnpm
|
| 17 |
RUN pnpm install -P
|
| 18 |
|