Spaces:
Sleeping
Sleeping
Download Dockerfile from Anuj-Panthri/mlops_postgres: direct link, hf CLI and curl.
- Browser
- Download file 262 Bytes
-
https://huggingface.co/spaces/Anuj-Panthri/mlops_postgres/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Anuj-Panthri/mlops_postgres/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Anuj-Panthri/mlops_postgres/resolve/main/Dockerfile
262 Bytes
| FROM postgres | |
| # RUN useradd -m -u 1000 postgres | |
| WORKDIR /app | |
| USER root | |
| RUN id -u postgres | |
| RUN usermod -u 1000 postgres | |
| RUN mkdir -p /var/lib/postgresql/data && chown -R postgres:postgres /var/lib/postgresql/data | |
| RUN id -u postgres | |
| USER postgres | |
| EXPOSE 5432 |