Skip to content

Commit 4d0260f

Browse files
authored
Update Dockerfile
1 parent 05cdf98 commit 4d0260f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# syntax=docker/dockerfile:1.4
22

33
FROM alpine:3.19 AS downloader
4-
RUN apk add --no-cache curl
5-
RUN curl -o Dockerfile.pg_jsonschema https://raw.githubusercontent.com/supabase/pg_jsonschema/master/dockerfiles/db/Dockerfile
4+
RUN apk add --no-cache git
5+
RUN git clone https://github.com/supabase/pg_jsonschema.git
6+
WORKDIR /pg_jsonschema
7+
RUN ln -s dockerfiles/db/Dockerfile Dockerfile.pg_jsonschema
68

79
FROM scratch AS pg_jsonschema
8-
COPY --from=downloader Dockerfile.pg_jsonschema .
10+
COPY --from=downloader /pg_jsonschema /
911

1012
FROM pg_jsonschema AS base
13+
1114
# Script to detect whether the database has finished initializing
1215
COPY ["true_isready.sh", "/usr/local/bin/"]
1316
COPY ["database scripts/00_dump.sql", "database scripts/0[2345]_*.sql", "database scripts/json_schema_extension.sql", "/docker-entrypoint-initdb.d/"]

0 commit comments

Comments
 (0)