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: strategy:
matrix: matrix:
python-version: ['3.7'] python-version: ['3.9']
name: Linting name: Linting
steps: steps:

View File

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