Switch Dockerfile to Alpine Linux

selenium-screenshot-testing
CodeKevin 2015-11-17 21:32:12 -05:00
parent b89a8f17e1
commit 40e52fb630
1 changed files with 8 additions and 5 deletions

View File

@ -1,9 +1,12 @@
FROM ubuntu:trusty FROM alpine:3.2
RUN apt-get update && apt-get upgrade -y RUN apk update && apk upgrade
RUN apk add git gcc musl-dev libffi-dev python python-dev py-pip
RUN apt-get install git gunicorn -y
RUN git clone https://github.com/isislab/CTFd.git /opt/CTFd && cd /opt/CTFd && ./prepare.sh
RUN mkdir /opt
RUN git clone https://github.com/isislab/CTFd.git /opt/CTFd && cd /opt/CTFd
WORKDIR /opt/CTFd WORKDIR /opt/CTFd
RUN pip install -r requirements.txt
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-w", "4", "CTFd:create_app()"] CMD ["gunicorn", "--bind", "0.0.0.0:8000", "-w", "4", "CTFd:create_app()"]
EXPOSE 8000 EXPOSE 8000