jekyll_docker_image/Dockerfile

27 lines
678 B
Docker

FROM docker-registry1.in.thelinuxpro.net:5000/tlp/os/ubuntu/lts/tlp_ubuntu:24.04.2
LABEL version="2024.07.01-1"
LABEL image.author.name="Kameron Kenny"
LABEL image.author.email="kameron@localhost"
LABEL description="A default Ubuntu based image \
to be used for Jekyll."
ARG LOCATION_JEKYLL="/usr/local/jekyll"
ENV GEM_HOME="/usr/local/gems"
ENV PATH="/usr/local/gems/bin:$PATH"
#EXPOSE 22/tcp
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt -y upgrade
RUN apt -y install ruby-full build-essential zlib1g-dev nginx git
RUN gem install jekyll bundler
RUN mkdir -p $LOCATION_JEKYLL && mkdir -p $GEM_HOME
WORKDIR $LOCATION_JEKYLL
COPY Gemfile .
RUN bundle install