2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-02-11 08:28:26 +00:00

fix(frappe-worker): allow non-root password to not expire

old image tags seems to stop working if password is set to expire

fixes https://github.com/frappe/helm/issues/58
This commit is contained in:
Revant Nandgaonkar 2021-01-04 18:52:52 +05:30
parent c4485b3ca3
commit 35dd53cc6f

View File

@ -1,6 +1,9 @@
FROM bitnami/python:3.7-prod FROM bitnami/python:3.7-prod
RUN useradd -ms /bin/bash frappe # Add non root user without password
RUN sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS -1/' /etc/login.defs \
&& sed -i 's/^PASS_MIN_DAYS.*/PASS_MIN_DAYS -1/' /etc/login.defs \
&& useradd -ms /bin/bash frappe
ARG GIT_BRANCH=develop ARG GIT_BRANCH=develop
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1