Skip to content

Commit

Permalink
Fix pkg install issue during docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
rashed091 committed Nov 21, 2023
1 parent 10151b7 commit c223955
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c223955

Please sign in to comment.