first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
FROM node:10
# 定位进入容器项目文件夹
WORKDIR /home/node
# 拷贝宿主项目到容器
COPY . .
# 初始化项目
# RUN npm install -g cnpm
# RUN apt-get update && apt-get install net-tools
# RUN apt-get update && apt-get install lsof
# RUN apt-get update && apt-get install vim -y
RUN npm install
#RUN cnpm install -g node-dev
# 绑定端口
EXPOSE 3000
# 启动网站
CMD [ "node", "./bin/www" ]