fix: update Docker file paths and simplify production start script
This commit is contained in:
parent
b9dc2eb870
commit
b09c55f22c
2 changed files with 2 additions and 2 deletions
|
|
@ -20,6 +20,6 @@ COPY --from=production-dependencies-env /app/node_modules /app/node_modules
|
|||
COPY --from=build-env /app/build /app/build
|
||||
COPY ./drizzle /app/drizzle
|
||||
COPY ./drizzle.config.ts /app/drizzle.config.ts
|
||||
COPY ./database /app/database
|
||||
COPY ./server /app/server
|
||||
WORKDIR /app
|
||||
CMD ["npm", "run", "start:production"]
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
"db:migrate": "dotenv -- drizzle-kit migrate",
|
||||
"dev": "dotenv -- node server.js",
|
||||
"start": "node server.js",
|
||||
"start:production": "drizzle-kit migrate && rm -rf drizzle drizzle.config.ts database && node server.js",
|
||||
"start:production": "drizzle-kit migrate && node server.js",
|
||||
"typecheck": "react-router typegen && tsc -b"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue