1
0
mirror of https://github.com/balkian/jfernando.es.git synced 2025-07-01 04:52:23 +00:00
jfernando.es/Dockerfile
J. Fernando Sánchez 5983fe23f6 Dockerized build
2018-02-21 13:02:28 +01:00

30 lines
546 B
Docker

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/