Skip to content

Commit eb85184

Browse files
authored
Remove C build tools and upgrade PostgreSQL to 16 (#72)
1 parent ba72b8f commit eb85184

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

docker/Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ RUN apt-get update \
1010
tini \
1111
bash \
1212
netcat-traditional \
13-
libffi-dev \
1413
git \
15-
gcc \
16-
libc6-dev \
1714
&& apt-get clean
1815

1916
WORKDIR /rodhaj
@@ -42,4 +39,4 @@ STOPSIGNAL SIGTERM
4239
LABEL org.opencontainers.image.title="Rodhaj"
4340
LABEL org.opencontainers.image.description="A discord modmail bot"
4441
LABEL org.opencontainers.image.licenses="Apache-2.0"
45-
LABEL org.opencontainers.image.source="https://github.com/transprogrammer/rodhaj"
42+
LABEL org.opencontainers.image.source="https://github.com/transprogrammer/rodhaj"

docker/pg/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FROM postgres:15
2-
COPY /init.sh /docker-entrypoint-initdb.d/
1+
FROM postgres:16
2+
COPY /init.sh /docker-entrypoint-initdb.d/

docker/pg/init.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
set -e
33

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

0 commit comments

Comments
 (0)