mlops_postgres / Dockerfile
Anuj-Panthri's picture
following what hf says
05c6af1
raw
history blame
231 Bytes
FROM postgres
RUN useradd -m -u 1000 user
WORKDIR /app
USER root
RUN mkdir -p /custom_pgdata && chown -R user:user /custom_pgdata
USER user
ENV PGDATA=/custom_pgdata
RUN initdb -D /custom_pgdata
EXPOSE 5432
CMD ["postgres"]