mirror of
https://gitlab.com/MisterBiggs/Resume.git
synced 2025-08-02 11:31:35 +00:00
moving to pandoc_resume
This commit is contained in:
33
.docker/resume.dockerfile
Normal file
33
.docker/resume.dockerfile
Normal file
@@ -0,0 +1,33 @@
|
||||
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 && \
|
||||
apt-get install -y \
|
||||
build-essential \
|
||||
wget \
|
||||
context \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN wget https://github.com/jgm/pandoc/releases/download/2.2.1/pandoc-2.2.1-1-amd64.deb
|
||||
RUN dpkg -i pandoc-2.2.1-1-amd64.deb && rm pandoc-*.deb
|
||||
#Cleanup to reduce container size
|
||||
RUN apt-get remove -y wget && \
|
||||
apt-get autoclean && \
|
||||
apt-get clean
|
||||
|
||||
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 ./Makefile $HOME/$APP_NAME/
|
||||
RUN chown -R app:app $HOME/*
|
||||
|
||||
USER app
|
||||
WORKDIR $HOME/$APP_NAME
|
||||
|
||||
RUN make clean
|
Reference in New Issue
Block a user