fix docker image

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-01-29 18:02:23 +01:00
parent 417cefdaf8
commit 09d264741d
2 changed files with 2 additions and 2 deletions

View file

@ -30,4 +30,4 @@ COPY --from=builder /app/dist /app
EXPOSE 5000
ENTRYPOINT npx prisma migrate deploy && node api/server.js
ENTRYPOINT npx prisma migrate deploy && node server.js

View file

@ -9,7 +9,7 @@ const build = async (opts = {}) => {
routes.register(app)
app.register(staticFiles, {
root: path.join(__dirname, '..', 'static'),
root: path.join(__dirname, 'static'),
})
app.setNotFoundHandler((req, res) => {
res.sendFile('index.html')