Skip to content

Commit ca75885

Browse files
committed
Improved dockerfile and changed stale limit
1 parent 68f93df commit ca75885

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.dockerignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ app.json
145145
CHANGELOG.md
146146
CODE_OF_CONDUCT.md
147147
CONTRIBUTING.md
148-
Pipfile
149-
Pipfile.lock
148+
requirements.min.txt
150149
Procfile
151150
pyproject.toml
152151
README.md

.github/workflows/lints.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
run: bandit ./bot.py cogs/*.py core/*.py -b .bandit_baseline.json
2727
- name: Pylint
2828
run: pylint ./bot.py cogs/*.py core/*.py --disable=import-error --exit-zero -r y
29+
continue-on-error: true
2930
- name: Black and flake8
3031
run: |
3132
black . --check

.github/workflows/stale.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
- uses: actions/stale@v1
1111
with:
1212
repo-token: ${{ secrets.GITHUB_TOKEN }}
13-
stale-issue-message: 'This issue is stale because it has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 5 days'
14-
days-before-stale: 90
13+
stale-issue-message: 'This issue is stale because it has been open for 100 days with no activity. Remove stale label or comment or this will be closed in 5 days. Please do not un-stale this issue unless it carries significant contribution.'
14+
days-before-stale: 100
1515
days-before-close: 5
16+
exempt-issue-label: 'high priority'

Dockerfile

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
FROM python:3.7.4-alpine
1+
FROM python:3.7-alpine
22
WORKDIR /modmailbot
33
COPY . /modmailbot
4-
RUN pip install --no-cache-dir -r requirements.min.txt
5-
CMD ["python", "bot.py"]
4+
RUN export PIP_NO_CACHE_DIR=false \
5+
&& apk update \
6+
&& apk add --update --no-cache --virtual .build-deps alpine-sdk \
7+
&& pip install pipenv \
8+
&& pipenv install --deploy --ignore-pipfile \
9+
&& apk del .build-deps
10+
CMD ["pipenv", "run", "bot"]

0 commit comments

Comments
 (0)