Skip to content

Instantly share code, notes, and snippets.

@uwekamper
Created October 5, 2018 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uwekamper/656d66c5f64ff0ab7efc1d63d3e9cb4c to your computer and use it in GitHub Desktop.
Save uwekamper/656d66c5f64ff0ab7efc1d63d3e9cb4c to your computer and use it in GitHub Desktop.
Dockerfile for lektor with webpack
# Build with:
# docker build -t <projectname> .
# Run with windows, untested:
# docker run --rm -it -v %cd%:/data -v /data/webpack/node_modules -p 5000:5000 -it <projectname> lektor server -f webpack --host 0.0.0.0
# Run on Uunix:
# docker run --rm -it -v $(pwd):/data -v /data/webpack/node_modules -p 5000:5000 -it <projectname> lektor server -f webpack --host 0.0.0.0
FROM python:3.6.1
WORKDIR /usr/src
RUN curl -sL https://deb.nodesource.com/setup_10.x > node_install.sh
RUN chmod +x ./node_install.sh
RUN ./node_install.sh
RUN apt-get install -y gcc g++ make nodejs
RUN pip install --upgrade pip
RUN mkdir /app
WORKDIR /app
ADD requirements.txt /app
RUN pip install -r requirements.txt
RUN mkdir /data
WORKDIR /data
CMD lektor server -f webpack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment