mirror of https://github.com/JohnHammond/CTFd.git
13 lines
357 B
Docker
13 lines
357 B
Docker
FROM alpine:3.3
|
|
RUN apk update && apk upgrade
|
|
RUN apk add --no-cache git gcc musl-dev libffi-dev python python-dev py-pip
|
|
|
|
RUN mkdir /opt
|
|
RUN git clone https://github.com/isislab/CTFd.git /opt/CTFd && cd /opt/CTFd
|
|
WORKDIR /opt/CTFd
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-w", "4", "CTFd:create_app()"]
|
|
EXPOSE 8000
|