forked from mszep/pandoc_resume
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mszep#19 from TheDonDope/feature/docker
feat(docker): provide docker integration
- Loading branch information
Showing
5 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM ubuntu | ||
|
||
# prepare a user which runs everything locally! - required in child images! | ||
RUN useradd --user-group --create-home --shell /bin/false app | ||
|
||
ENV HOME=/home/app | ||
WORKDIR $HOME | ||
|
||
RUN apt-get update | ||
RUN apt-get install build-essential pandoc context -y | ||
|
||
ENV APP_NAME=resume | ||
|
||
# before switching to user we need to set permission properly | ||
# copy all files, except the ignored files from .dockerignore | ||
COPY . $HOME/$APP_NAME/ | ||
COPY ./.docker/Makefile $HOME/$APP_NAME/ | ||
RUN chown -R app:app $HOME/* | ||
|
||
USER app | ||
WORKDIR $HOME/$APP_NAME | ||
|
||
RUN make clean |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.tuc | ||
*.log | ||
*.html | ||
resume.tex | ||
*.swo | ||
*.swp | ||
*.docx | ||
*.rtf |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '2' | ||
|
||
services: | ||
|
||
resume-make: | ||
build: | ||
context: . | ||
dockerfile: ./.docker/resume.dockerfile | ||
command: make | ||
container_name: resume-make | ||
image: resume-make | ||
volumes: | ||
- .:/home/app/resume |