1 Star 1 Fork 1

sumu/flygoose-blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
zhanghongjun 提交于 2024-02-06 17:38 . 添加flygoose博客前台项目
FROM node:18.19-alpine3.18 as builder
COPY . /hellworld-blog
WORKDIR /hellworld-blog
RUN yarn install --no-frozen-lockfile --registry=https://registry.npm.taobao.org
RUN yarn build
# deploy flygoose web
FROM node:18.19-alpine3.18
RUN npm install -g pm2 --registry=https://registry.npm.taobao.org
RUN adduser -D -u 6666 www
RUN mkdir -p /apps/hellworld-blog ; chown -R www /apps/hellworld-blog/
USER www
#copy flygoose web
COPY --from=builder /hellworld-blog/node_modules /apps/hellworld-blog/node_modules
COPY --from=builder /hellworld-blog/nuxt.config.ts /apps/hellworld-blog/
COPY --from=builder /hellworld-blog/package.json /apps/hellworld-blog/
COPY --from=builder /hellworld-blog/pm2.config.js /apps/hellworld-blog/
COPY --from=builder /hellworld-blog/server /apps/hellworld-blog/server
COPY --from=builder /hellworld-blog/.nuxt /apps/hellworld-blog/.nuxt
COPY --from=builder /hellworld-blog/.output /apps/hellworld-blog/.output
WORKDIR /apps/hellworld-blog/
EXPOSE 58081
CMD ["sh", "-c", "pm2 start pm2.config.js ; pm2 logs"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sumu100/flygoose-blog.git
git@gitee.com:sumu100/flygoose-blog.git
sumu100
flygoose-blog
flygoose-blog
main

搜索帮助