resume.dockerfile 549 B

1234567891011121314151617181920212223
  1. FROM ubuntu
  2. # prepare a user which runs everything locally! - required in child images!
  3. RUN useradd --user-group --create-home --shell /bin/false app
  4. ENV HOME=/home/app
  5. WORKDIR $HOME
  6. RUN apt-get update
  7. RUN apt-get install build-essential pandoc context -y
  8. ENV APP_NAME=resume
  9. # before switching to user we need to set permission properly
  10. # copy all files, except the ignored files from .dockerignore
  11. COPY . $HOME/$APP_NAME/
  12. COPY ./.docker/Makefile $HOME/$APP_NAME/
  13. RUN chown -R app:app $HOME/*
  14. USER app
  15. WORKDIR $HOME/$APP_NAME
  16. RUN make clean