This repository has been archived on 2021-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
docker-pelican/Dockerfile

17 lines
312 B
Text
Raw Normal View History

2017-05-02 20:45:08 +00:00
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
2017-07-15 19:12:58 +00:00
CMD $SRV_DIR/develop_server.sh restart $PORT