CTFd/Dockerfile

13 lines
357 B
Docker
Raw Normal View History

2016-01-03 10:26:19 +00:00
FROM alpine:3.3
2015-11-18 02:32:12 +00:00
RUN apk update && apk upgrade
2016-01-03 10:26:19 +00:00
RUN apk add --no-cache 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