mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-04-19 23:37:41 +00:00
fix docker image
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
417cefdaf8
commit
09d264741d
2 changed files with 2 additions and 2 deletions
|
@ -30,4 +30,4 @@ COPY --from=builder /app/dist /app
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
ENTRYPOINT npx prisma migrate deploy && node api/server.js
|
ENTRYPOINT npx prisma migrate deploy && node server.js
|
||||||
|
|
|
@ -9,7 +9,7 @@ const build = async (opts = {}) => {
|
||||||
routes.register(app)
|
routes.register(app)
|
||||||
|
|
||||||
app.register(staticFiles, {
|
app.register(staticFiles, {
|
||||||
root: path.join(__dirname, '..', 'static'),
|
root: path.join(__dirname, 'static'),
|
||||||
})
|
})
|
||||||
app.setNotFoundHandler((req, res) => {
|
app.setNotFoundHandler((req, res) => {
|
||||||
res.sendFile('index.html')
|
res.sendFile('index.html')
|
||||||
|
|
Loading…
Add table
Reference in a new issue