2018-01-24 15:18:55 +01:00
|
|
|
FROM alpine:3.7
|
|
|
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
# Install PHP runtime
|
2018-02-02 19:58:31 +01:00
|
|
|
apk --no-cache add nginx php7 php7-ctype php7-fpm php7-gd php7-json php7-mbstring php7-mcrypt php7-opcache php7-session s6
|
2018-01-24 15:18:55 +01:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
# Install runtime dependencies
|
2018-01-24 15:52:13 +01:00
|
|
|
apk --no-cache add php7-curl php7-imap php7-mysqli php7-pdo_mysql
|
2018-01-24 15:18:55 +01:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
# Download Ushahidi
|
|
|
|
wget https://github.com/ushahidi/platform-release/releases/download/v3.8.0/ushahidi-platform-release-v3.8.0.tar.gz -O /tmp/ushahidi.tgz \
|
|
|
|
&& tar xzf /tmp/ushahidi.tgz -C /tmp \
|
|
|
|
&& mv /tmp/ushahidi-platform-release-v3.8.0/html /srv/ushahidi \
|
|
|
|
# Create OS user
|
|
|
|
&& addgroup -S -g 8014 ushahidi \
|
|
|
|
&& adduser -S -u 8014 -h /srv/ushahidi -s /bin/false -g ushahidi -G ushahidi ushahidi \
|
2018-02-02 20:16:26 +01:00
|
|
|
&& chown -R ushahidi:ushahidi /srv/ushahidi/platform/application/logs /srv/ushahidi/platform/application/cache /srv/ushahidi/platform/application/media/uploads \
|
2018-01-24 15:18:55 +01:00
|
|
|
# Cleanup
|
|
|
|
&& rm -rf /tmp/ushahidi.tgz /tmp/ushahidi-platform-release-v3.8.0
|
|
|
|
|
|
|
|
COPY docker/ /
|
|
|
|
|
2018-02-02 20:16:26 +01:00
|
|
|
VOLUME ["/srv/ushahidi/platform/application/media/uploads"]
|
2018-03-25 23:21:54 +02:00
|
|
|
EXPOSE 8080
|
2018-01-24 15:18:55 +01:00
|
|
|
|
|
|
|
CMD ["s6-svscan", "/etc/services.d"]
|