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

31 lines
821 B
Docker
Raw Normal View History

2018-07-27 16:50:02 +00:00
FROM debian:stretch-slim
2017-05-02 20:45:08 +00:00
2018-07-27 16:50:02 +00:00
# Install dependencies
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update --yes --fix-missing && apt-get upgrade --yes && \
apt-get install --yes --no-install-recommends \
apt-utils \
2018-07-27 21:55:49 +00:00
build-essential \
2018-07-27 16:50:02 +00:00
bash \
coreutils \
python-pip \
python-virtualenv \
python-dev \
python-setuptools
2017-05-02 20:45:08 +00:00
2018-07-27 16:50:02 +00:00
# Install pelican and dependencies
COPY files/start.sh /start.sh
COPY files/requirements.txt requirements.txt
RUN pip install wheel
2017-05-02 20:45:08 +00:00
RUN pip install -r requirements.txt
2018-07-27 16:50:02 +00:00
# Cleanup
RUN apt-get autoremove --yes $build_dependencies && apt-get autoremove --yes && \
apt-get clean --yes && rm -rf /var/lib/apt/* /var/cache/apt/* /root/.cache
EXPOSE 8000
WORKDIR /srv/pelican
VOLUME ["/srv/pelican"]
CMD /start.sh restart 8000