Add user in the image and not container. (#51)

This commit is contained in:
Abhilash Raj
2017-06-14 23:34:55 -07:00
committed by GitHub
parent c9304e868d
commit b49edc2fa0
2 changed files with 4 additions and 4 deletions

View File

@@ -8,9 +8,8 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends ruby-sass \
wget \
postgresql-client \
&& rm -rf /var/lib/apt/lists/*
RUN python -m pip install -U mailmanclient==3.1.0 \
&& rm -rf /var/lib/apt/lists/* \
&& python -m pip install -U mailmanclient==3.1.0 \
postorius==1.1.0 \
hyperkitty==1.1.0 \
django-mailman3==1.1.0 \
@@ -23,6 +22,8 @@ RUN python -m pip install -U mailmanclient==3.1.0 \
ADD mailman-web /opt/mailman-web
RUN useradd -M -U -u 1000 mailman
ADD assets/run.sh /opt/run.sh
WORKDIR /opt/mailman-web

View File

@@ -91,7 +91,6 @@ python manage.py migrate
# Create a mailman user with the specific UID and GID and do not create home
# directory for it. Also chown the logs directory to write the files.
useradd -M -U -u 1000 mailman
chown mailman:mailman /opt/mailman-web-data -R