CoolFace
Apppublic

hsukqilee/OpenCC-API

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
Dockerfile22 linesDownload Raw Back to root
1# 使用官方的 Node.js 镜像作为基础镜像2FROM node:143 4# 确保有 git5RUN apt-get update && apt-get install -y git6 7# 设置工作目录8WORKDIR /app9 10# 克隆仓库并安装依赖11RUN git clone https://github.com/HenryQW/OpenCC.henry.wang.git /app \12    && npm install --production13 14# 设置环境变量15ENV PORT=786016 17# 暴露端口 786018EXPOSE 786019 20# 启动应用程序21CMD ["npm", "start"]22