Skip to content

Commit

Permalink
fix(frappe-worker): allow non-root password to not expire
Browse files Browse the repository at this point in the history
old image tags seems to stop working if password is set to expire

fixes frappe/helm#58
  • Loading branch information
revant committed Jan 4, 2021
1 parent 7b17057 commit d59712e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/frappe-worker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
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
ENV PYTHONUNBUFFERED 1
Expand Down

0 comments on commit d59712e

Please sign in to comment.