CTFd/Dockerfile

17 lines
344 B
Docker
Raw Normal View History

FROM python:2.7-alpine
RUN apk update && \
apk add python python-dev libffi-dev gcc make musl-dev py-pip mysql-client
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
VOLUME ["/opt/CTFd"]
2015-11-18 02:32:12 +00:00
RUN pip install -r requirements.txt
RUN chmod +x /opt/CTFd/docker-entrypoint.sh
2015-09-17 06:31:58 +00:00
EXPOSE 8000
ENTRYPOINT ["/opt/CTFd/docker-entrypoint.sh"]