diff --git a/Dockerfile b/Dockerfile index 5673e5a..c093314 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,19 +37,7 @@ EOF # stage. FROM debian:bullseye-slim AS final -# Create a non-privileged user that the app will run under. -# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user -ARG UID=10001 -RUN adduser \ - --disabled-password \ - --gecos "" \ - --home "/nonexistent" \ - --shell "/sbin/nologin" \ - --no-create-home \ - --uid "${UID}" \ - appuser -USER appuser - +# install required packges RUN apt update && apt install -y openssl libpq-dev pkg-config # Copy the executable from the "build" stage.