Download Dockerfile from jarvisx17/postgres: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/jarvisx17/postgres/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jarvisx17/postgres/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jarvisx17/postgres/resolve/main/Dockerfile
561 Bytes
| # Use the official PostgreSQL image from the Docker Hub | |
| FROM postgres:latest | |
| # Environment variables for PostgreSQL setup | |
| ENV POSTGRES_DB='mydatabase' | |
| ENV POSTGRES_USER='myuser' | |
| ENV POSTGRES_PASSWORD='mypassword' | |
| # Copy the custom PostgreSQL configuration file | |
| COPY postgresql.conf ./postgresql.conf | |
| # Copy initialization scripts to the Docker container | |
| COPY init.sql /docker-entrypoint-initdb.d/ | |
| # Expose the custom port | |
| EXPOSE 7860 | |
| # Run PostgreSQL with the custom configuration file | |
| CMD ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"] | |