-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit docker work for updates and compiling on x64
- Loading branch information
Michael Bagnall
committed
Mar 18, 2023
1 parent
7ce89d3
commit 667aece
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters