Skip to content

Commit c0d117e

Browse files
committed
Init Db
1 parent 706b39b commit c0d117e

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
FROM postgres:13-alpine AS base
2-
3-
ENV INIT_MODE=empty
1+
FROM postgres:13-alpine AS empty
42

53
# Script to detect whether the database has finished initializing
64
COPY ["true_isready.sh", "/usr/local/bin/"]
@@ -12,6 +10,5 @@ COPY ["install_postgres_json_schema_extension.sh", "install_postgres_json_schema
1210
RUN chmod u+x install_postgres_json_schema_extension.sh
1311
RUN ./install_postgres_json_schema_extension.sh
1412

15-
COPY ["init_demo_db.sh", "init_demo_db.sh"]
16-
RUN chmod u+x init_demo_db.sh
17-
RUN ./init_demo_db.sh
13+
FROM empty AS demo
14+
COPY ["database scripts/demo_db.sql", "/docker-entrypoint-initdb.d/"]

init_demo_db.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)