Skip to content

Commit

Permalink
fix: add build script to docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
irony committed Sep 18, 2024
1 parent 2841d99 commit 3c7ab6e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ RUN npm install --omit=dev
RUN npm install -g ts-node
COPY . .
EXPOSE 3000
RUN npm run build
CMD ["ts-node", "api/server.ts"]
1 change: 1 addition & 0 deletions api/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const io = new Server(server, {
},
})

app.use('/', express.static(path.join(__dirname, '../dist')))
app.use('/assets', express.static(path.join(__dirname, '../assets')))
app.get('/healthz', (req, res) => res.send('ok'))

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"serve": "expo export && npx serve dist -p 3000",
"build": "expo export",
"deploy": "gh-pages -d dist",
"predeploy": "expo export && echo skaff.iteam.pub > dist/CNAME"
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true
"strict": false
}
}

0 comments on commit 3c7ab6e

Please sign in to comment.