Skip to content

docker-training/md-secure-renderer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure Markdown Renderer

Renders markdown projects from encypted tar files

Usage

  1. Create a .dockerignore file, and include any files or directories you want to exclue. This should look similar to your .gitignore file.
#.dockerignore

.vscode/
  1. 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
  1. Build Dockerfile
docker build -t example --build-arg KEY=password .
  1. Run container
docker run -e KEY=password -p 8080:8080 yourimage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 87.8%
  • JavaScript 8.1%
  • Shell 2.1%
  • Makefile 1.2%
  • CSS 0.8%