Dockerfile 354 B

123456789101112131415
  1. FROM postgres:14.2
  2. ARG USER_ID
  3. ARG GROUP_ID
  4. RUN apt-get update && apt-get install -y sudo;
  5. RUN addgroup --gid ${GROUP_ID} labkey
  6. RUN adduser --gecos 'LabKey' --uid ${USER_ID} --gid ${GROUP_ID} --disabled-password labkey
  7. RUN echo 'labkey ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
  8. RUN usermod -G root,sudo labkey
  9. USER labkey
  10. LABEL "name"="postgresqlX"