Renders markdown projects from encypted tar files
- Create a
.dockerignore
file, and include any files or directories you want to exclue. This should look similar to your.gitignore
file.
#.dockerignore
.vscode/
- Create Dockerfile in the root of the project you want to render.
#Dockerfile
FROM ubuntu:16.04 as builder
RUN apt-get update && apt-get install -y openssl
COPY . /content
ARG KEY
WORKDIR /content
RUN tar -czf - * | openssl enc -e -aes256 -k $KEY -out content.tar.gz
FROM broyal/md-secure-renderer:latest
COPY --from=builder /content/content.tar.gz /app/content.tar.gz
- Build Dockerfile
docker build -t example --build-arg KEY=password .
- Run container
docker run -e KEY=password -p 8080:8080 yourimage