Skip to content

Commit

Permalink
fix: docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Sep 20, 2024
1 parent 8ac9c16 commit b842609
Show file tree
Hide file tree
Showing 5 changed files with 921 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
images
.env*
dist
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ RUN apk add --no-cache --virtual .gyp python3 make g++

COPY . .
RUN corepack enable yarn
RUN yarn set version 4.1.1
RUN yarn

RUN yarn build
RUN yarn cache clean

# Final stage
FROM node:lts-alpine AS final
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "sern build && node ./dist/index.js --dev",
"prod": "tsc-watch -p \"./tsconfig.json\" --onSuccess \"node ./dist/index.js\"",
"compile": "tsc --build",
"build": "tsc --build",
"build": "sern build",
"web": "node webserver.js",
"watch": "tsc --watch",
"start": "nodemon dist/index.js"
Expand Down Expand Up @@ -65,6 +65,7 @@
"systeminformation": "^5.21.7"
},
"devDependencies": {
"@sern/cli": "^1.3.3",
"@types/express": "^4.17.14",
"@types/node": "^20.12.7",
"ts-node": "10.9.1",
Expand Down
Loading

0 comments on commit b842609

Please sign in to comment.