Files
jekyll-build-pages/Dockerfile
T
Jess Bees 3b1cf2975b
Docker / build (push) Has been cancelled
Move emit_telemetry out of entrypoint
Prepare for emit_telemetry to be invoked as an alternative entrypoint,
rather than as the last command in entrypoint.sh
2022-03-23 14:08:29 -04:00

27 lines
482 B
Docker

ARG RUBY_VERSION=2.7.4
FROM ruby:$RUBY_VERSION-slim
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
COPY entrypoint.sh /entrypoint.sh
COPY emit_telemetry /emit_telemetry
ENTRYPOINT ["/entrypoint.sh"]