Commit 14196b78 authored by Felix Delattre's avatar Felix Delattre

js dependencies global versus local

parent c411453f
FROM debian:buster-slim
EXPOSE 8000
WORKDIR /srv/pelican
VOLUME ["/srv/pelican"]
# Install dependencies
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update --yes --fix-missing && apt-get upgrade --yes && \
......@@ -18,14 +23,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
# Install pelican and dependencies
RUN pip3 install pelican-webassets webassets
RUN npm install -g postcss-cli cssnano postcss-cssnext postcss-preset-env
RUN npm install -g postcss-cli
RUN npm install cssnano postcss-cssnext postcss-preset-env
# 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 make serve
CMD make html && make serve
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment