Commit d680d3d2 authored by Felix Delattre's avatar Felix Delattre

made js modules available

parent f663f3a0
......@@ -4,7 +4,6 @@ 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 && \
......@@ -13,21 +12,19 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
build-essential \
bash \
coreutils \
python3-pip \
python3-dev \
python3-setuptools \
pelican \
npm \
node-postcss \
node-postcss-modules-extract-imports
pelican \
python3-pip \
python3-dev
# Install pelican and dependencies
COPY start.sh /start.sh
RUN pip3 install pelican-webassets webassets
RUN npm install -g postcss-cli cssnano postcss-cssnext postcss-preset-env
RUN npm install -g postcss-cli postcss-import 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
CMD make html && make serve
CMD /start.sh
#!/usr/bin/env bash
BASEDIR=$(pwd)
###
# MAIN
###
npm link postcss-cli postcss-import cssnano postcss-cssnext postcss-preset-env
make devserver
\ No newline at end of file
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