Skip to content

Commit

Permalink
Commit docker work for updates and compiling on x64
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bagnall committed Mar 18, 2023
1 parent 7ce89d3 commit 667aece
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
54 changes: 54 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
FROM ubuntu:18.04

# Set our our meta data for this container.
LABEL name="FlyingFlip Studios, LLC. Platform Docker Container"
LABEL author="Michael R. Bagnall <[email protected]>"

WORKDIR /root

ENV TERM xterm

ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/share
RUN apt-get update && apt-get -y upgrade

RUN apt-get -y install curl dirmngr apt-transport-https lsb-release ca-certificates sudo apt-utils wget rubygems

# Update apt repos and install base apt packages.
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \
gem uninstall bundler && \
apt-get update && apt-get -y upgrade && DEBIAN_FRONTEND=noninteractive apt-get install -y \
software-properties-common imagemagick apache2 apache2-utils make && \
apt-add-repository -y ppa:brightbox/ruby-ng && \
apt-get -y update && \
apt-get install -y ruby2.7 ruby2.7-dev && \
update-alternatives --config ruby && \
gem install bundler -v 2.1.4 && \
gem install json -v '2.5.1'

RUN mkdir -p /src
COPY . /src
WORKDIR /src

RUN bundle install --path vendor/bundle && \
locale-gen en_US.UTF-8 && \
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 bundle exec jekyll build --destination=/var/www/html

# Configure Apache. Be sure to enable apache mods or you're going to have a bad time.
RUN a2enmod rewrite \
&& a2enmod actions \
&& a2enmod alias \
&& a2enmod deflate \
&& a2enmod dir \
&& a2enmod expires \
&& a2enmod headers \
&& a2enmod mime \
&& a2enmod negotiation \
&& a2enmod setenvif \
&& a2enmod proxy \
&& a2enmod proxy_http \
&& a2enmod speling \
&& a2enmod perl \
&& a2enmod cgid \
&& a2enmod remoteip \
&& a2enmod ssl && \
service apache2 restart
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

ruby "2.7.1"
ruby "2.7.5"
gem "jekyll", "~>3.9.1"
group :jekyll_plugins do
gem 'jekyll-feed', '~> 0.6'
Expand Down

0 comments on commit 667aece

Please sign in to comment.