Fix lints in Dockerfile (#2097)

* Fix lints in Dockerfile
This commit is contained in:
Kevin Chung
2022-04-20 15:55:13 -04:00
committed by GitHub
parent 2702d83975
commit b9b7de77bd
2 changed files with 4 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
python-version: ['3.7']
python-version: ['3.9']
name: Linting
steps:

View File

@@ -25,13 +25,14 @@ RUN for d in CTFd/plugins/*; do \
fi; \
done;
# hadolint ignore=DL3059
RUN adduser \
--disabled-login \
-u 1001 \
--gecos "" \
--shell /bin/bash \
ctfd
RUN chmod +x /opt/CTFd/docker-entrypoint.sh \
ctfd \
&& chmod +x /opt/CTFd/docker-entrypoint.sh \
&& chown -R 1001:1001 /opt/CTFd /var/log/CTFd /var/uploads
USER 1001