appstore/apps/meowfacts/latest/Dockerfile
2025-07-07 14:16:13 +00:00

20 lines
426 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM node:22-alpine
# 安装 git创建工作目录并克隆代码
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh && \
mkdir -p /usr/src/app && \
git clone https://github.com/wh-iterabb-it/meowfacts /usr/src/app
# 切换到工作目录
WORKDIR /usr/src/app
# 安装 Node.js 依赖
RUN npm install
# 暴露服务器端口
EXPOSE 3000-5001
# 启动应用程序
CMD ["npm", "start"]