Skip to content

Commit 578d108

Browse files
committed
Får med migreringsfilene
1 parent 4994592 commit 578d108

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ WORKDIR /app
1010
COPY --from=build /app/build ./build
1111
COPY --from=build /app/package*.json ./
1212
COPY --from=build /app/node_modules ./node_modules
13+
COPY --from=build /app/drizzle ./drizzle
14+
COPY --from=build /app/drizzle.config.ts ./
1315
EXPOSE 3000
1416
ENV NODE_ENV=production
15-
CMD ["node", "build"]
17+
CMD ["sh", "-c", "npx drizzle-kit migrate && node build"]

docker-compose.prod.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)