-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from silinternational/feature/merge-silintl-ubuntu
merge silintl/ubuntu
- Loading branch information
Showing
1 changed file
with
19 additions
and
4 deletions.
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 |
---|---|---|
@@ -1,17 +1,21 @@ | ||
FROM silintl/ubuntu:22.04 | ||
FROM ubuntu:22.04 | ||
LABEL maintainer="[email protected]" | ||
|
||
ENV REFRESHED_AT 2024-03-05 | ||
ENV REFRESHED_AT 2024-03-15 | ||
ENV HTTPD_PREFIX /etc/apache2 | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# Set up default locale environment variables | ||
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8" | ||
|
||
# Install OS packages | ||
# Specific php versions are not required as ubuntu is feature complete | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
jq \ | ||
libapache2-mod-php \ | ||
locales \ | ||
nano \ | ||
netcat \ | ||
php \ | ||
|
@@ -33,15 +37,26 @@ RUN apt-get update && apt-get install -y \ | |
libssl3 \ | ||
apache2 \ | ||
&& phpenmod mcrypt \ | ||
# Update the /etc/default/locale file | ||
# removing locales causes issues | ||
&& locale-gen en_US.UTF-8 \ | ||
&& update-locale LANG="$LANG" \ | ||
&& update-locale LANGUAGE="$LANGUAGE" \ | ||
&& update-locale LC_ALL="$LC_ALL" \ | ||
# Clean up to reduce docker image size | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install composer | ||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | ||
|
||
# Install s3-expand | ||
ADD https://raw.githubusercontent.com/silinternational/s3-expand/master/s3-expand /usr/local/bin/s3-expand | ||
RUN chmod a+x /usr/local/bin/s3-expand | ||
|
||
# Install whenavail | ||
RUN curl -fo /usr/local/bin/whenavail https://raw.githubusercontent.com/silinternational/whenavail-script/1.0.2/whenavail \ | ||
&& chmod a+x /usr/local/bin/whenavail | ||
ADD https://raw.githubusercontent.com/silinternational/whenavail-script/1.0.2/whenavail /usr/local/bin/whenavail | ||
RUN chmod a+x /usr/local/bin/whenavail | ||
|
||
# Remove default site, configs, and mods not needed | ||
WORKDIR $HTTPD_PREFIX | ||
|