1 Star 0 Fork 0

Reverier-Xu/CTFd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 932 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kevin Chung 提交于 2020-07-01 12:06 . 3.0.0a1 (#1523)
FROM python:3.7-slim-buster
WORKDIR /opt/CTFd
RUN mkdir -p /opt/CTFd /var/log/CTFd /var/uploads
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
default-mysql-client \
python-dev \
libffi-dev \
libssl-dev \
git\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY . /opt/CTFd
RUN pip install -r requirements.txt --no-cache-dir
# hadolint ignore=SC2086
RUN for d in CTFd/plugins/*; do \
if [ -f "$d/requirements.txt" ]; then \
pip install -r $d/requirements.txt --no-cache-dir; \
fi; \
done;
RUN adduser \
--disabled-login \
-u 1001 \
--gecos "" \
--shell /bin/bash \
ctfd
RUN chmod +x /opt/CTFd/docker-entrypoint.sh \
&& chown -R 1001:1001 /opt/CTFd /var/log/CTFd /var/uploads
USER 1001
EXPOSE 8000
ENTRYPOINT ["/opt/CTFd/docker-entrypoint.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/reverierxu/CTFd.git
git@gitee.com:reverierxu/CTFd.git
reverierxu
CTFd
CTFd
master

搜索帮助