CTFd/Dockerfile

13 lines
346 B
Docker
Raw Normal View History

FROM alpine:3.2
2015-11-18 02:32:12 +00:00
RUN apk update && apk upgrade
RUN apk add git gcc musl-dev libffi-dev python python-dev py-pip
2015-09-17 06:31:58 +00:00
2015-11-18 02:32:12 +00:00
RUN mkdir /opt
RUN git clone https://github.com/isislab/CTFd.git /opt/CTFd && cd /opt/CTFd
2015-09-17 06:31:58 +00:00
WORKDIR /opt/CTFd
2015-11-18 02:32:12 +00:00
RUN pip install -r requirements.txt
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-w", "4", "CTFd:create_app()"]
2015-09-17 06:31:58 +00:00
EXPOSE 8000