-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
32df2a4
commit 2df072d
Showing
1 changed file
with
13 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
FROM alpine | ||
FROM ubuntu:jammy | ||
|
||
RUN apk update && apk add postgresql-client bash ncurses | ||
# Add the PostgreSQL Apt Repository for PostgreSQL packages | ||
RUN apt-get update && \ | ||
apt-get install -y gnupg wget && \ | ||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \ | ||
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(grep UBUNTU_CODENAME /etc/os-release | cut -d= -f2)-pgdg main" > /etc/apt/sources.list.d/pgdg.list | ||
|
||
WORKDIR app | ||
# Install postgresql-client-16 | ||
RUN apt-get update && \ | ||
apt-get install -y postgresql-client-16 bash ncurses-bin && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
ADD . . | ||
|
||
CMD bash migrate.sh | ||
CMD ["bash", "migrate.sh"] |