initial commit
This commit is contained in:
commit
53857edf18
|
@ -0,0 +1,2 @@
|
||||||
|
*.swp
|
||||||
|
*~
|
|
@ -0,0 +1,26 @@
|
||||||
|
# Dockerfile to build and serve a jekyll site with the development webserver
|
||||||
|
FROM ubuntu:focal
|
||||||
|
LABEL Description="This image is used to learn building dockerfiles" \
|
||||||
|
Author="david@socialnerds.org" \
|
||||||
|
Version="0.1" \
|
||||||
|
License="MIT"
|
||||||
|
|
||||||
|
# environment variables
|
||||||
|
ENV JEKYLL_SITE=default
|
||||||
|
|
||||||
|
# copy stuff into the image
|
||||||
|
COPY jekyll.sh jekyll.sh
|
||||||
|
RUN chmod +x jekyll.sh
|
||||||
|
|
||||||
|
# expose port for `jekyll serve`
|
||||||
|
EXPOSE 4000
|
||||||
|
|
||||||
|
# volume definitions
|
||||||
|
VOLUME ["/mnt"]
|
||||||
|
|
||||||
|
# prepare the baseimage
|
||||||
|
RUN apt-get update && apt-get install -y ruby ruby-dev gcc g++ make libssl-dev libreadline-dev && \
|
||||||
|
gem update && gem install jekyll bundler
|
||||||
|
|
||||||
|
# run command
|
||||||
|
CMD ./jekyll.sh
|
|
@ -0,0 +1,13 @@
|
||||||
|
version: "3.0"
|
||||||
|
|
||||||
|
services:
|
||||||
|
jekyll:
|
||||||
|
image: jekyll-dev:latest
|
||||||
|
build: .
|
||||||
|
container_name: jekyll-dev
|
||||||
|
volumes:
|
||||||
|
- /home/david/Projects/just-the-docs:/mnt
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:4000:4000
|
||||||
|
environment:
|
||||||
|
- JEKYLL_SITE=docs
|
Reference in New Issue