bumped php version
This commit is contained in:
commit
f97861d0a6
63
omeka-s-docker/Dockerfile
Normal file
63
omeka-s-docker/Dockerfile
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
FROM alpine:3.11
|
||||||
|
|
||||||
|
LABEL Maintainer="Jabar Digital Service <digital.service@jabarprov.go.id>" \
|
||||||
|
Description="Lightweight container with Nginx 1.16 & PHP-FPM 7.4 based on Alpine Linux (forked from trafex/alpine-nginx-php7)."
|
||||||
|
|
||||||
|
#ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
|
||||||
|
|
||||||
|
# make sure you can use HTTPS
|
||||||
|
RUN apk --update add ca-certificates
|
||||||
|
|
||||||
|
#RUN echo "https://dl.bintray.com/php-alpine/v3.11/php-7.4" >> /etc/apk/repositories
|
||||||
|
|
||||||
|
# Install packages
|
||||||
|
RUN apk --no-cache add php7 php7-fpm php7-opcache php7-openssl php7-curl \
|
||||||
|
nginx supervisor curl unzip
|
||||||
|
|
||||||
|
# https://github.com/codecasts/php-alpine/issues/21
|
||||||
|
#RUN ln -s /usr/bin/php7 /usr/bin/php
|
||||||
|
|
||||||
|
# Configure nginx
|
||||||
|
COPY config/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
|
# Remove default server definition
|
||||||
|
RUN rm /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
|
# Configure PHP-FPM
|
||||||
|
COPY config/fpm-pool.conf /etc/php7/php-fpm.d/www.conf
|
||||||
|
COPY config/php.ini /etc/php7/conf.d/custom.ini
|
||||||
|
|
||||||
|
# Configure supervisord
|
||||||
|
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
|
||||||
|
# Setup document root
|
||||||
|
RUN mkdir -p /var/www/html
|
||||||
|
#RUN mkdir -p /var/www/html/omeka-s
|
||||||
|
|
||||||
|
# Fetch Omeka-S
|
||||||
|
WORKDIR /tmp
|
||||||
|
ADD https://github.com/omeka/omeka-s/releases/download/v4.0.4/omeka-s-4.0.4.zip /tmp
|
||||||
|
RUN unzip omeka-s-4.0.4.zip -d /var/www/html/
|
||||||
|
|
||||||
|
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
|
||||||
|
RUN chown -R nobody.nobody /var/www/html && \
|
||||||
|
chown -R nobody.nobody /run && \
|
||||||
|
chown -R nobody.nobody /var/lib/nginx && \
|
||||||
|
chown -R nobody.nobody /var/log/nginx
|
||||||
|
|
||||||
|
|
||||||
|
# Switch to use a non-root user from here on
|
||||||
|
USER nobody
|
||||||
|
|
||||||
|
# Add application
|
||||||
|
# WORKDIR /var/www/html
|
||||||
|
# COPY --chown=nobody src/ /var/www/html/
|
||||||
|
|
||||||
|
# Expose the port nginx is reachable on
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
# Let supervisord start nginx & php-fpm
|
||||||
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
||||||
|
|
||||||
|
# Configure a healthcheck to validate that everything is up&running
|
||||||
|
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping
|
Loading…
Reference in New Issue
Block a user