Skip to content

Commit

Permalink
Revert "Renamed user from app to modmail"
Browse files Browse the repository at this point in the history
This reverts commit 319000b.
  • Loading branch information
khakers committed Dec 16, 2023
1 parent c57d53a commit 7e9717e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@ FROM python:3.10 as py
FROM py as build

RUN apt update && apt install -y g++ git

COPY requirements.txt /
RUN pip install --prefix=/inst -U -r /requirements.txt

FROM py

COPY --from=build /inst /usr/local

ENV USING_DOCKER yes
RUN useradd --system --no-create-home modmail
USER modmail
COPY --from=build /inst /usr/local

WORKDIR /modmailbot
CMD ["python", "bot.py"]
COPY --chown=modmail:modmail . /modmailbot
COPY . /modmailbot
RUN adduser --disabled-password --gecos '' app && \
chown -R app /modmailbot
USER app

0 comments on commit 7e9717e

Please sign in to comment.