FROM python:2 ENV SRV_DIR=//srv ENV WORKING_DIR=//srv/pelican ENV PORT=8000 ADD ./files $SRV_DIR WORKDIR $WORKING_DIR RUN mkdir output content cache VOLUME ["$WORKING_DIR/"] RUN pip install -r requirements.txt RUN chmod +x $SRV_DIR/develop_server.sh EXPOSE $PORT CMD $SRV_DIR/develop_server.sh restart $PORT