Skip to content

Commit

Permalink
Remove C build tools and upgrade PostgreSQL to 16 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 authored Feb 7, 2024
1 parent ba72b8f commit eb85184
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ RUN apt-get update \
tini \
bash \
netcat-traditional \
libffi-dev \
git \
gcc \
libc6-dev \
&& apt-get clean

WORKDIR /rodhaj
Expand Down Expand Up @@ -42,4 +39,4 @@ STOPSIGNAL SIGTERM
LABEL org.opencontainers.image.title="Rodhaj"
LABEL org.opencontainers.image.description="A discord modmail bot"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.source="https://github.com/transprogrammer/rodhaj"
LABEL org.opencontainers.image.source="https://github.com/transprogrammer/rodhaj"
4 changes: 2 additions & 2 deletions docker/pg/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM postgres:15
COPY /init.sh /docker-entrypoint-initdb.d/
FROM postgres:16
COPY /init.sh /docker-entrypoint-initdb.d/
4 changes: 2 additions & 2 deletions docker/pg/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE ROLE rodhaj WITH LOGIN PASSWORD "$RODHAJ_PASSWORD";
CREATE ROLE rodhaj WITH LOGIN PASSWORD '$RODHAJ_PASSWORD';
CREATE DATABASE rodhaj OWNER rodhaj;
EOSQL
EOSQL

0 comments on commit eb85184

Please sign in to comment.