File size: 478 Bytes
2544447
c472e4a
f59c6ff
2544447
0543ebf
 
2544447
 
5e65912
2544447
0543ebf
2544447
 
 
 
 
 
0543ebf
 
7800a8c
0543ebf
2544447
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 基于的基础镜像  
FROM node:14
USER root
  
# 设置工作目录  
WORKDIR /app  
  
# 安装 Git  
RUN apt-get update && \  
    apt-get install -y git  
  
# 安装 Yarn  
RUN curl -o- -L https://yarnpkg.com/install.sh | bash  
  
# 设置环境变量  
ENV PATH=/app/node_modules/.bin:$PATH

# 将FreedomGPT代码复制到容器中  
RUN git clone --recursive https://github.com/ohmplatform/FreedomGPT.git freedom-gpt

# 运行FreedomGPT  
CMD ["yarn", "start:prod"]