File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ WORKDIR /app
1010COPY --from=build /app/build ./build
1111COPY --from=build /app/package*.json ./
1212COPY --from=build /app/node_modules ./node_modules
13+ COPY --from=build /app/drizzle ./drizzle
14+ COPY --from=build /app/drizzle.config.ts ./
1315EXPOSE 3000
1416ENV NODE_ENV=production
15- CMD ["node " , "build" ]
17+ CMD ["sh " , "-c" , "npx drizzle-kit migrate && node build" ]
Original file line number Diff line number Diff line change 11services :
22 db :
3- image : postgres:17
3+ image : postgres:${POSTGRES_VERSION:-17}
44 restart : unless-stopped
55 environment :
66 POSTGRES_USER : ${DB_USER:-javabin}
@@ -15,9 +15,7 @@ services:
1515 retries : 5
1616
1717 app :
18- build :
19- context : .
20- dockerfile : Dockerfile
18+ image : ghcr.io/javabin/javabinkids:${JZ_KIDS_VERSION:-latest}
2119 restart : unless-stopped
2220 ports :
2321 - " ${APP_PORT:-3000}:3000"
@@ -31,7 +29,7 @@ services:
3129 condition : service_healthy
3230
3331 backup :
34- image : postgres:17
32+ image : postgres:${POSTGRES_VERSION:-17}
3533 restart : unless-stopped
3634 environment :
3735 PGHOST : db
Original file line number Diff line number Diff line change 11{
22 "name" : " javabinkids" ,
33 "private" : true ,
4- "version" : " 0.0.1 " ,
4+ "version" : " 0.0.2 " ,
55 "type" : " module" ,
66 "scripts" : {
77 "dev" : " vite dev" ,
You can’t perform that action at this time.
0 commit comments