jekyll_docker_image/Dockerfile

27 lines
668 B
Docker

FROM docker-registry1.in.thelinuxpro.net:5000/tlp/os/ubuntu/lts/tlp_ubuntu:24.04.2
LABEL version="24.04.3"
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
RUN gem install jekyll bundler
RUN mkdir -p $LOCATION_JEKYLL && mkdir -p $LOCATION_GEMS
WORKDIR $LOCATION_JEKYLL
COPY Gemfile .
RUN bundle install