23 lines
985 B
Plaintext
23 lines
985 B
Plaintext
|
IMAGE ushahidi_4.4.1-200313
|
||
|
FROM alpine3.11-php7.3_7.3.15-200313
|
||
|
|
||
|
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/v4.4.1/ushahidi-platform-client-bundle-v4.4.1.tar.gz -O - | tar xzf - -C /srv
|
||
|
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
|
||
|
chown -R ushahidi:ushahidi /srv/ushahidi/platform/application/logs /srv/ushahidi/platform/application/cache /srv/ushahidi/platform/application/media/uploads
|
||
|
EOF
|
||
|
|
||
|
COPY image.d
|
||
|
|
||
|
CMD /bin/s6-svscan /etc/services.d
|