fix docker build issue

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-02-06 16:16:37 +01:00
parent aa623f8bee
commit f997045b48
2 changed files with 2 additions and 3 deletions

View file

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

View file

@ -7,9 +7,8 @@ const build = async (opts = {}) => {
const app = await initApp(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')