fuliai commited on
Commit
fac3571
1 Parent(s): 7933ffc

Upload Dockerfile (1).txt

Browse files
Files changed (1) hide show
  1. Dockerfile (1).txt +36 -0
Dockerfile (1).txt ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nikolaik/python-nodejs:python3.11-nodejs20
2
+
3
+ # 添加 CACHEBUST 参数
4
+ ARG CACHEBUST=1
5
+
6
+ ENV USER=pn \
7
+ HOMEDIR=/home/pn \
8
+ PORT=7860 \
9
+ SSHX_INSTALL=true \
10
+ GRADIO_SERVER_NAME="0.0.0.0" \
11
+ GIT_REPO="https://github.com/aigem/hf-roop-unleashed-cpu.git" \
12
+ PROJECT_NAME="aigem-roop-unleashed"
13
+
14
+ RUN apt-get update && apt-get install -y --no-install-recommends \
15
+ apt-utils \
16
+ build-essential \
17
+ libpq-dev \
18
+ git \
19
+ curl \
20
+ vim \
21
+ ffmpeg \
22
+ && rm -rf /var/lib/apt/lists/*
23
+
24
+ WORKDIR ${HOMEDIR}
25
+
26
+ # 克隆项目到 ${HOMEDIR}/${PROJECT_NAME}
27
+ RUN git clone ${GIT_REPO} ${HOMEDIR}/${PROJECT_NAME} \
28
+ && chmod +x ${HOMEDIR}/${PROJECT_NAME}/src/*.sh \
29
+ && if [ "$SSHX_INSTALL" = true ]; then ${HOMEDIR}/${PROJECT_NAME}/src/sshx.sh; fi \
30
+ && ${HOMEDIR}/${PROJECT_NAME}/src/roop-unleashed.sh
31
+
32
+ # 暴露 Remix 端口
33
+ EXPOSE ${PORT}
34
+
35
+ # 在启动时设置 API_KEY 环境变量
36
+ ENTRYPOINT ${HOMEDIR}/${PROJECT_NAME}/src/startup.sh