-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# ===================== | ||
# --- Builder Stage --- | ||
# ===================== | ||
FROM postgres:14.6 AS builder | ||
FROM postgres:16 AS builder | ||
|
||
ENV POSTGRES_PASSWORD=password | ||
ENV POSTGRES_USER=postgres | ||
|
@@ -10,15 +10,15 @@ ENV POSTGRES_HOST_AUTH_METHOD=trust | |
ENV PGDATA=/data | ||
|
||
COPY docker/scripts/db-import.sh /docker-entrypoint-initdb.d/ | ||
COPY ietfwww.dump / | ||
COPY docker/database/ietfwww.dump / | ||
|
||
RUN ["sed", "-i", "s/exec \"$@\"/echo \"skipping...\"/", "/usr/local/bin/docker-entrypoint.sh"] | ||
RUN ["/usr/local/bin/docker-entrypoint.sh", "postgres"] | ||
|
||
# =================== | ||
# --- Final Image --- | ||
# =================== | ||
FROM postgres:14.6 | ||
FROM postgres:16 | ||
LABEL maintainer="IETF Tools Team <[email protected]>" | ||
|
||
COPY --from=builder /data $PGDATA | ||
|