Add user in the image and not container. (#51)
This commit is contained in:
@@ -8,9 +8,8 @@ RUN apt-get update \
|
|||||||
&& apt-get install -y --no-install-recommends ruby-sass \
|
&& apt-get install -y --no-install-recommends ruby-sass \
|
||||||
wget \
|
wget \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& python -m pip install -U mailmanclient==3.1.0 \
|
||||||
RUN python -m pip install -U mailmanclient==3.1.0 \
|
|
||||||
postorius==1.1.0 \
|
postorius==1.1.0 \
|
||||||
hyperkitty==1.1.0 \
|
hyperkitty==1.1.0 \
|
||||||
django-mailman3==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
|
ADD mailman-web /opt/mailman-web
|
||||||
|
|
||||||
|
RUN useradd -M -U -u 1000 mailman
|
||||||
|
|
||||||
ADD assets/run.sh /opt/run.sh
|
ADD assets/run.sh /opt/run.sh
|
||||||
|
|
||||||
WORKDIR /opt/mailman-web
|
WORKDIR /opt/mailman-web
|
||||||
|
|||||||
@@ -91,7 +91,6 @@ python manage.py migrate
|
|||||||
|
|
||||||
# Create a mailman user with the specific UID and GID and do not create home
|
# 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.
|
# 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
|
chown mailman:mailman /opt/mailman-web-data -R
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user