From 09d264741d57b5b1a195fccf053f4f39654abd7a Mon Sep 17 00:00:00 2001 From: Benny Samir Hierl Date: Sat, 29 Jan 2022 18:02:23 +0100 Subject: [PATCH] fix docker image Signed-off-by: Benny Samir Hierl --- Dockerfile | 2 +- src/api/app.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 787fc6c..384cfc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/src/api/app.ts b/src/api/app.ts index 8aa8923..52ab408 100644 --- a/src/api/app.ts +++ b/src/api/app.ts @@ -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')