Skip to content

Commit 63766da

Browse files
JanJan
andauthored
OP-1538: update dockerfile (#21)
* OP-1538: update dockerfile * OP-1538: change as to upper case --------- Co-authored-by: Jan <[email protected]>
1 parent 766cd5b commit 63766da

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
FROM postgres:13-alpine
1+
FROM postgres:13-alpine AS base
22

33
# Script to detect whether the database has finished initializing
44
COPY ["true_isready.sh", "/usr/local/bin/"]
5-
COPY ["database scripts/00_dump.sql", "database scripts/0[2345]_*.sql", "database scripts/demo_db.sql", "database scripts/json_schema_extension.sql", "/docker-entrypoint-initdb.d/"]
5+
COPY ["database scripts/00_dump.sql", "database scripts/0[2345]_*.sql", "database scripts/json_schema_extension.sql", "/docker-entrypoint-initdb.d/"]
66

77
# Install https://github.com/gavinwahl/postgres-json-schema/
88
# extension that allows validation of jsonb fields against jsonschema
99
COPY ["install_postgres_json_schema_extension.sh", "install_postgres_json_schema_extension.sh"]
1010
RUN chmod u+x install_postgres_json_schema_extension.sh
1111
RUN ./install_postgres_json_schema_extension.sh
12+
13+
FROM base AS demo
14+
COPY ["database scripts/demo_db.sql", "/docker-entrypoint-initdb.d/"]

0 commit comments

Comments
 (0)