write-ups-challenges-2022-2023/k8s_easter_eggs/part3/Dockerfile
2022-11-24 22:59:22 +01:00

15 lines
382 B
Docker

FROM library/postgres
ENV POSTGRES_DB=klarrio
ENV POSTGRES_USER=admin
ENV POSTGRES_PASSWORD=hbfdmMtWuhctJuwB
ENV POSTGRES_HOST_AUTH_METHOD=scram-sha-256
ENV POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256
RUN echo 'set +o history' >> /etc/profile && echo 'set +o history' >> /root/.bashrc
COPY init.sql init.sh /docker-entrypoint-initdb.d/
COPY psqlrc /root/.psqlrc
USER patrick