mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Speed up docker builds (#1767)
* Copy over `requirements.txt` first in Dockerfile to cache Python dependencies
This commit is contained in:
@@ -14,9 +14,12 @@ RUN apt-get update \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY . /opt/CTFd
|
||||
COPY requirements.txt /opt/CTFd/
|
||||
|
||||
RUN pip install -r requirements.txt --no-cache-dir
|
||||
|
||||
COPY . /opt/CTFd
|
||||
|
||||
# hadolint ignore=SC2086
|
||||
RUN for d in CTFd/plugins/*; do \
|
||||
if [ -f "$d/requirements.txt" ]; then \
|
||||
|
||||
Reference in New Issue
Block a user