mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
Switch Dockerfile to Alpine Linux
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -1,9 +1,12 @@
|
||||
FROM ubuntu:trusty
|
||||
RUN apt-get update && apt-get upgrade -y
|
||||
|
||||
RUN apt-get install git gunicorn -y
|
||||
RUN git clone https://github.com/isislab/CTFd.git /opt/CTFd && cd /opt/CTFd && ./prepare.sh
|
||||
FROM alpine:3.2
|
||||
RUN apk update && apk upgrade
|
||||
RUN apk add git gcc musl-dev libffi-dev python python-dev py-pip
|
||||
|
||||
RUN mkdir /opt
|
||||
RUN git clone https://github.com/isislab/CTFd.git /opt/CTFd && cd /opt/CTFd
|
||||
WORKDIR /opt/CTFd
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-w", "4", "CTFd:create_app()"]
|
||||
EXPOSE 8000
|
||||
|
||||
Reference in New Issue
Block a user