Dockerfile12 510 B

1234567891011121314151617181920
  1. #FROM postgres:14.2
  2. FROM postgres:12.1
  3. ARG USER_ID
  4. ARG GROUP_ID
  5. #ignore pgdg when doing update
  6. RUN mv /etc/apt/sources.list.d/pgdg.list /etc/apt/sources.list.d/pgdg.list.bak
  7. RUN apt-get update && apt-get install -y sudo;
  8. #RUN apt-cache search ca
  9. RUN addgroup --gid ${GROUP_ID} labkey
  10. RUN adduser --gecos 'LabKey' --uid ${USER_ID} --gid ${GROUP_ID} --disabled-password labkey
  11. RUN echo 'labkey ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
  12. RUN usermod -G root,sudo labkey
  13. USER labkey
  14. LABEL "name"="postgresqlX"