Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复 docker 构建命令,添加 level 相关依赖到 pnpm lock,移除 debug 使用的 node-network-devtools #73

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:18-alpine as builder
RUN mkdir /app
WORKDIR /app
COPY . /app
RUN npm i -g npm && npm ci --ignore-scripts && npm run build
RUN npm i -g pnpm && pnpm i && pnpm build

FROM node:18-alpine
LABEL maintainer="https://github.com/zgq354/weibo-rss"
Expand All @@ -14,8 +14,8 @@ RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/
echo "057ecd4ac1d3c3be31f82fc0848bf77b1326a975b4f8423fe31607205a0fe945 /usr/local/bin/dumb-init" | sha256sum -c - && \
chmod 755 /usr/local/bin/dumb-init

COPY package.json package-lock.json /app/
RUN npm install --production
COPY package.json pnpm-lock.yaml /app/
RUN npm install -g pnpm && pnpm install --prod

# app code
COPY . /app
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"koa": "^2.14.1",
"koa-static": "^5.0.0",
"level": "^6.0.1",
"leveldown": "^6.1.1",
"levelup": "^5.1.1",
"node-schedule": "^1.3.0",
"np-queue": "^2.0.0",
"rss": "^1.2.2",
Expand Down
Loading