Skip to content

Commit a7a7ce1

Browse files
committed
feat(build): drop root privileges, update .dockerignore
1 parent 02250e8 commit a7a7ce1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,18 @@ temp/
138138
test.py
139139

140140
# Other stuff
141+
.dockerignore
141142
.env.example
142143
.gitignore
143144
.github/
144145
app.json
145146
CHANGELOG.md
147+
docker-compose.yml
148+
LICENSE
149+
PRIVACY.md
146150
Procfile
147151
pyproject.toml
148152
README.md
149153
Pipfile
150154
Pipfile.lock
155+
SPONSORS.json

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ COPY --from=build /inst /usr/local
1414
WORKDIR /modmailbot
1515
CMD ["python", "bot.py"]
1616
COPY . /modmailbot
17+
RUN adduser --disabled-password --gecos '' app && \
18+
chown -R app /modmailbot
19+
USER app

0 commit comments

Comments
 (0)