Swap to vivi build action

This commit is contained in:
2023-07-11 23:30:08 +00:00
parent 7e95662a95
commit b6cf9325a4
5 changed files with 458 additions and 170 deletions

View File

@@ -1,25 +1,14 @@
ARG RUBY_VERSION=2.7.4
FROM ruby:$RUBY_VERSION-slim
FROM jekyll/minimal:latest
LABEL version="1.2.0"
LABEL description="Minimal Jekyll image with basic build tools."
LABEL maintainer="Vivien Richter <vivien-richter@outlook.de>"
RUN apt-get update \
&& apt-get install -y \
build-essential \
git \
locales \
nodejs
COPY Gemfile Gemfile
RUN NOKOGIRI_USE_SYSTEM_LIBRARIES=true bundle install
RUN \
echo "en_US UTF-8" > /etc/locale.gen && \
locale-gen en-US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# Requirements
USER root
RUN apk --no-cache add build-base
EXPOSE 4000/tcp
# Entry point
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]