Created
January 21, 2020 23:51
-
-
Save treyhuffine/99f0d534adb2bad7833bd669c0695510 to your computer and use it in GitHub Desktop.
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
FROM postgres:latest | |
ARG FILE | |
ARG DBNAME | |
ENV FILE ${FILE} | |
ENV DBNAME ${DBNAME} | |
VOLUME /tmp | |
COPY ${FILE} /tmp/${FILE} | |
COPY restore_database.sh /docker-entrypoint-initdb.d/restore_database.sh | |
RUN sed -i 's/\r$//g' /docker-entrypoint-initdb.d/restore_database.sh | |
RUN chmod 777 /docker-entrypoint-initdb.d/restore_database.sh | |
EXPOSE 5432 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment