ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:140fb5108b4a2861b5718ad03b4a5174bba03589ea8d4c053e6a0b282f439ff3 in / |
CMD ["/bin/bash"] |
/bin/sh -c apt update && apt-get install -y ruby-full build-essential zlib1g-dev git libmariadb-dev |
/bin/sh -c useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 ubuntu |
USER ubuntu |
WORKDIR /home/ubuntu |
ENV GEM_HOME=/home/ubuntu/gems |
ENV PATH=/home/ubuntu/gems/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
/bin/sh -c gem install jekyll bundler |
/bin/sh -c git clone https://hamgit.monotok.org/hammer/blog-chirpy-jekyll.git -b myblog --single-branch |
WORKDIR /home/ubuntu/blog-chirpy-jekyll |
/bin/sh -c bundle install |
/bin/sh -c rm -rf /home/ubuntu/blog-chirpy-jekyll |