Skip to content

Commit

Permalink
改下 docker
Browse files Browse the repository at this point in the history
  • Loading branch information
krau committed Jun 18, 2024
1 parent a542e70 commit 3e8edb1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
FROM nikolaik/python-nodejs:python3.11-nodejs20 AS builder
FROM oven/bun:latest

ENV NODE_WORKDIR /app
WORKDIR $NODE_WORKDIR
ENV WORKDIR /app
WORKDIR $WORKDIR

ADD . $NODE_WORKDIR
ADD . $WORKDIR

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN apt-get update && apt-get install -y build-essential gcc wget git libvips && rm -rf /var/lib/apt/lists/*

RUN npm install && npm install sharp@0.30.5 && npm install tdl-tdlib-addon --build-from-source
RUN bun install
Binary file modified bun.lockb
Binary file not shown.
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
bot:
build:
Expand All @@ -13,7 +11,7 @@ services:
max-file: "3"
networks:
- quotly
command: node index.js
command: bun run start
mongo:
restart: always
image: mongo:4
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
"mongoose": "^5.13.2",
"prebuilt-tdlib": "^0.1008030.0",
"prom-client": "^12.0.0",
"sharp": "^0.30.5",
"sharp": "^0.33.4",
"tdl": "^8.0.0",
"tdl-tdlib-addon": "^1.2.2",
"telegraf": "^3.39.0",
"telegraf-i18n": "^6.6.0",
"telegraf-ratelimit": "^2.0.0",
Expand Down

0 comments on commit 3e8edb1

Please sign in to comment.