mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-04-19 15:27:41 +00:00
fix docker build issue
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
aa623f8bee
commit
f997045b48
2 changed files with 2 additions and 3 deletions
|
@ -32,4 +32,4 @@ COPY --from=builder /app/dist /app
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
ENTRYPOINT npx prisma migrate deploy && node server.js
|
ENTRYPOINT npx prisma migrate deploy && node api/server.js
|
||||||
|
|
|
@ -7,9 +7,8 @@ const build = async (opts = {}) => {
|
||||||
const app = await initApp(opts)
|
const app = await initApp(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