Commit e8eb530c authored by BAIRE Anthony's avatar BAIRE Anthony

run as the 'allgo' user by default

parent adb67b15
......@@ -15,6 +15,7 @@ RUN cd /tmp && pip3 install -r requirements.txt && rm requirements.txt
COPY . /opt/allgo
RUN sh /opt/allgo/setup/setup.sh
USER allgo
WORKDIR /opt/allgo
LABEL dk.migrate_always=1
ENV PYTHONUNBUFFERED 1
......
......@@ -29,3 +29,7 @@ done)
# install django static files into /var/www
(cd /opt/allgo && ALLGO_SECRET_KEY_PATH=/tmp/dummy_key python3 manage.py collectstatic --no-input -l -v0)
# create the allgo user
useradd -m -s /bin/bash allgo
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment