21 lines
496 B
Docker
21 lines
496 B
Docker
FROM debian:bullseye-slim
|
|
|
|
# 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 \
|
|
pelican
|
|
|
|
# Install pelican and dependencies
|
|
COPY files/start.sh /start.sh
|
|
|
|
# Cleanup
|
|
RUN 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
|
|
|