CTFd/Dockerfile

17 lines
472 B
Docker
Raw Normal View History

FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install build-essential python-dev python-pip libffi-dev -y
2015-09-17 06:31:58 +00:00
VOLUME ["/opt/CTFd"]
RUN mkdir -p /opt/CTFd
2016-01-09 00:42:23 +00:00
COPY . /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
2016-01-09 00:42:23 +00:00
RUN pip install pymysql
2015-11-18 02:32:12 +00:00
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-w", "4", "CTFd:create_app()", "--access-logfile", "/opt/CTFd/CTFd/logs/access.log", "--error-logfile", "/opt/CTFd/CTFd/logs/error.log"]
2015-09-17 06:31:58 +00:00
EXPOSE 8000