Skip to content

Commit

Permalink
chore: more compressed image
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Aug 16, 2023
1 parent ee29cae commit da2c4c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ WORKDIR /app

RUN apk add --no-cache ffmpeg

RUN apk add --no-cache --virtual .gyp python make g++ \
&& apk del .gyp

RUN npm install -g typescript
RUN apk add --no-cache --virtual .gyp python make g++

COPY package.json ./
COPY yarn.lock ./

RUN yarn

RUN apk del .gyp

COPY . .

RUN tsc --build
RUN yarn build

RUN yarn prune --production

CMD node dist/index.js
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "tsc --watch",
"dev": "tsc-watch --onSuccess \"node dist/index.js\""
"dev": "tsc-watch --onSuccess \"node dist/index.js\"",
"build": "tsc --build"
},
"type": "module",
"repository": {
Expand Down

0 comments on commit da2c4c2

Please sign in to comment.