5 changed files with 21 additions and 2 deletions
@ -1,22 +1,33 @@ |
|||||
FROM ubuntu:latest |
FROM ubuntu:latest |
||||
MAINTAINER wes kerfoot "wjak56@gmail.com" |
MAINTAINER wes kerfoot "wjak56@gmail.com" |
||||
|
|
||||
RUN apt-get update -y |
RUN apt-get update -y |
||||
RUN apt-get install -y python3-pip python3-dev build-essential |
RUN apt-get install -y python3-pip python3-dev build-essential |
||||
RUN apt-get install -y curl |
RUN apt-get install -y curl |
||||
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash |
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash |
||||
RUN apt-get install -y sassc nodejs |
RUN apt-get install -y sassc nodejs |
||||
RUN npm install -g uglifycss uglifyjs |
RUN npm install -g uglifycss uglifyjs |
||||
|
|
||||
COPY . ./src |
COPY . ./src |
||||
|
|
||||
WORKDIR /src |
WORKDIR /src |
||||
|
|
||||
RUN npm install |
RUN npm install |
||||
RUN pip3 install -r /src/requirements.txt |
RUN pip3 install -r /src/requirements.txt |
||||
RUN mkdir -p ./build/styles ./build/scripts |
RUN mkdir -p ./build/styles ./build/scripts |
||||
|
|
||||
RUN npm run-script build_riotblog |
RUN npm run-script build_riotblog |
||||
RUN npm run-script build_editor |
RUN npm run-script build_editor |
||||
RUN sassc ./styles/riotblog.scss > ./styles/riotblog.intermediate.min.css |
RUN sassc ./styles/riotblog.scss > ./styles/riotblog.intermediate.min.css |
||||
RUN cp ./styles/*.css ./build/styles/ |
RUN cp ./styles/*.css ./build/styles/ |
||||
RUN uglifycss ./styles/*.css > ./build/styles/riotblog.min.css |
RUN uglifycss ./styles/*.css > ./build/styles/riotblog.min.css |
||||
ENTRYPOINT ["python3"] |
|
||||
ENV RIOTBLOG_SETTINGS "/src/riotblog_local.cfg" |
ENV RIOTBLOG_SETTINGS "/src/riotblog_local.cfg" |
||||
|
|
||||
|
COPY run.sh /run.sh |
||||
|
COPY blogPosts.json /blogPosts.json |
||||
|
|
||||
|
ENTRYPOINT ["/bin/bash", "/run.sh"] |
||||
CMD ["/src/website.py"] |
CMD ["/src/website.py"] |
||||
|
|
||||
EXPOSE 80 |
EXPOSE 80 |
||||
|
@ -0,0 +1,4 @@ |
|||||
|
#! /bin/bash |
||||
|
|
||||
|
touch /wtfisthis |
||||
|
exec python3 "$@" |
@ -0,0 +1,2 @@ |
|||||
|
FROM couchdb:2.3 |
||||
|
MAINTAINER wes kerfoot "wjak56@gmail.com" |
Loading…
Reference in new issue