1
0
mirror of https://github.com/balkian/jfernando.es.git synced 2025-08-29 16:52:20 +00:00

Dockerized build

This commit is contained in:
J. Fernando Sánchez
2018-02-21 13:02:28 +01:00
parent 19ccc8b9f1
commit 5983fe23f6
7 changed files with 360 additions and 545 deletions

View File

@@ -1,4 +1,29 @@
from python:3.5
WORKDIR /usr/src/app
ADD requirements.txt .
RUN pip install -r requirements.txt
ADD create_bibliography.py ref.bib resume-nobib.json /usr/src/app/
RUN python create_bibliography.py
from node
RUN npm install -g resume-cli jsonresume-theme-elegant
WORKDIR /usr/src/app
COPY --from=0 /usr/src/app/resume.json /usr/src/app/
RUN resume export --theme elegant --format html index.html
from nginx
COPY --from=1 /usr/src/app/index.html /usr/src/app/resume.json /usr/share/nginx/html/
EXPOSE 80
ADD . /usr/share/nginx/html/