Skip to content

Commit dd8ca78

Browse files
committed
Update dockerfile
1 parent 1a0eb2e commit dd8ca78

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,16 @@ RUN umask 0022
66

77
COPY package.json ./
88
COPY tsconfig.json ./
9-
COPY yarn.lock ./
10-
COPY .yarnrc.yml ./
11-
COPY .eslintrc.cjs ./
9+
COPY pnpm-lock.yaml ./
10+
COPY eslint.config.mjs ./
1211
COPY .env ./
1312
COPY src ./src
1413

15-
# Yarn build file
16-
COPY .yarn/releases/yarn-*.cjs ./.yarn/releases/
17-
1814
# Enable corepack
1915
RUN chmod 644 .env && sed -i 's/PREFIX=!/PREFIX=$/' .env && corepack enable
2016

2117
# build
22-
RUN yarn && yarn build
18+
RUN pnpm install && pnpm run build
2319

2420
# run
2521
CMD [ "node", "./dist/index.js" ]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stonk-bot",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"main": "index.js",
55
"license": "Apache-2.0",
66
"scripts": {

0 commit comments

Comments
 (0)