Skip to content

Commit

Permalink
Merge pull request #9 from silinternational/feature/merge-silintl-ubuntu
Browse files Browse the repository at this point in the history
merge silintl/ubuntu
  • Loading branch information
jason-jackson authored Mar 15, 2024
2 parents 7cdd8a8 + 42f80a7 commit f03176d
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions Dockerfile
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 \
Expand All @@ -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
Expand Down

0 comments on commit f03176d

Please sign in to comment.