Configure pgweb user for docker container (#674)

* Configure pgweb user for docker container
* Set UID to 1000
This commit is contained in:
Dan Sosedoff
2023-04-29 14:07:29 -05:00
committed by GitHub
parent b2067fbc8d
commit 52f7988ebd

View File

@@ -37,5 +37,8 @@ RUN . /etc/os-release && \
COPY --from=build /build/pgweb /usr/bin/pgweb
RUN useradd --uid 1000 --no-create-home --shell /bin/false pgweb
USER pgweb
EXPOSE 8081
ENTRYPOINT ["/usr/bin/pgweb", "--bind=0.0.0.0", "--listen=8081"]