2020-06-21 08:32:40 +02:00
|
|
|
IMAGE ushahidi_4.4.2-200621
|
2020-06-21 08:35:42 +02:00
|
|
|
FROM alpine3.11-php7.3_7.3.18-200621
|
2020-03-24 15:15:26 +01:00
|
|
|
|
|
|
|
RUN EOF
|
|
|
|
# Install runtime dependencies
|
2020-03-24 18:21:52 +01:00
|
|
|
apk --no-cache add php7-curl php7-imap php7-mysqli php7-pecl-memcached php7-pecl-redis php7-pdo_mysql
|
2020-03-24 15:15:26 +01:00
|
|
|
|
|
|
|
# Download Ushahidi
|
2020-04-04 00:17:24 +02:00
|
|
|
wget https://github.com/ushahidi/platform-client/releases/download/v4.4.2/ushahidi-platform-client-bundle-v4.4.2.tar.gz -O - | tar xzf - -C /srv
|
2020-03-24 15:15:26 +01:00
|
|
|
mv /srv/ushahidi-platform-client-bundle-* /srv/ushahidi
|
|
|
|
wget https://github.com/ushahidi/platform/releases/download/v4.4.1/ushahidi-platform-bundle-v4.4.1.tar.gz -O - | tar xzf - -C /srv/ushahidi
|
|
|
|
mv /srv/ushahidi/ushahidi-platform-bundle-* /srv/ushahidi/platform
|
|
|
|
|
|
|
|
# Create OS user
|
|
|
|
addgroup -S -g 8080 ushahidi
|
|
|
|
adduser -S -u 8080 -h /srv/ushahidi -s /bin/false -g ushahidi -G ushahidi ushahidi
|
2020-03-24 18:21:52 +01:00
|
|
|
mkdir /srv/ushahidi/platform/storage
|
|
|
|
chown -R ushahidi:ushahidi /srv/ushahidi/platform/storage
|
2020-03-24 15:15:26 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
COPY image.d
|
|
|
|
|
|
|
|
CMD /bin/s6-svscan /etc/services.d
|