Created
October 5, 2018 11:40
-
-
Save uwekamper/656d66c5f64ff0ab7efc1d63d3e9cb4c to your computer and use it in GitHub Desktop.
Dockerfile for lektor with webpack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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