2016-01-03 10:33:26 +00:00
|
|
|
FROM alpine:3.2
|
2015-11-18 02:32:12 +00:00
|
|
|
RUN apk update && apk upgrade
|
2016-01-03 10:33:26 +00:00
|
|
|
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
|
|
|
|
|
2015-11-18 00:46:44 +00:00
|
|
|
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-w", "4", "CTFd:create_app()"]
|
2015-09-17 06:31:58 +00:00
|
|
|
EXPOSE 8000
|