Spotter-VM/lxc-apps/ushahidi/lxcfile

35 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-09-18 11:29:58 +02:00
IMAGE ushahidi_3.12.3-190620
2019-11-30 09:59:32 +01:00
FROM alpine3.9-php7.2_7.2.19-190620
2018-09-13 14:44:32 +02:00
RUN EOF
# Install runtime dependencies
apk --no-cache add php7-curl php7-imap php7-mysqli php7-pdo_mysql
# Download Ushahidi
wget https://github.com/ushahidi/platform-client/releases/download/v3.12.3/ushahidi-platform-client-bundle-v3.12.3.tar.gz -O /tmp/ushahidi-platform-client-bundle.tar.gz
wget https://github.com/ushahidi/platform/releases/download/v3.12.3/ushahidi-platform-bundle-v3.12.3.tar.gz -O /tmp/ushahidi-platform-bundle.tar.gz
tar xzf /tmp/ushahidi-platform-client-bundle.tar.gz -C /srv
mv /srv/ushahidi-platform-client-bundle-v3.12.3 /srv/ushahidi
tar xzf /tmp/ushahidi-platform-bundle.tar.gz -C /srv/ushahidi
mv /srv/ushahidi/ushahidi-platform-bundle-v3.12.3 /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
2018-09-13 14:44:32 +02:00
chown -R ushahidi:ushahidi /srv/ushahidi/platform/application/logs /srv/ushahidi/platform/application/cache /srv/ushahidi/platform/application/media/uploads
# Cleanup
rm -rf /tmp/ushahidi-platform-client-bundle.tar.gz /tmp/ushahidi-platform-bundle.tar.gz
EOF
COPY lxc
RUN EOF
# Patch Previewers
cd /srv/ushahidi
patch -p0 <aura.patch
rm aura.patch
EOF
2018-09-13 16:21:16 +02:00
CMD s6-svscan /etc/services.d