FreedomGPT-XL / Dockerfile
hamigua's picture
Update Dockerfile
c472e4a
raw
history blame contribute delete
No virus
478 Bytes
# 基于的基础镜像
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"]