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