write-ups-challenges-2022-2023/k8s_easter_eggs/part3/Dockerfile

15 lines
382 B
Docker
Raw Permalink Normal View History

2022-11-24 21:59:22 +00:00
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