Changed container workdir
This commit is contained in:
parent
757edfa0dc
commit
fadeac8c99
@ -1,7 +1,7 @@
|
|||||||
FROM alpine:3.18
|
FROM alpine:3.18
|
||||||
|
|
||||||
LABEL Maintainer="Jabar Digital Service <digital.service@jabarprov.go.id>" \
|
LABEL Maintainer="TMS <tms@lameops.io>" \
|
||||||
Description="Lightweight container with Nginx 1.16 & PHP-FPM 7.4 based on Alpine Linux (forked from trafex/alpine-nginx-php7)."
|
Description="Omeka S docker container with NGINX"
|
||||||
|
|
||||||
#ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
|
#ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
|
||||||
|
|
||||||
@ -32,13 +32,16 @@ COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|||||||
|
|
||||||
# Setup documexnt root
|
# Setup documexnt root
|
||||||
RUN mkdir -p /var/www/html
|
RUN mkdir -p /var/www/html
|
||||||
#RUN mkdir -p /var/www/html/omeka-s
|
|
||||||
|
##RUN mkdir -p /var/www/html/omeka-s
|
||||||
|
|
||||||
# Fetch Omeka-S
|
# Fetch Omeka-S
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
ADD https://github.com/omeka/omeka-s/releases/download/v4.0.4/omeka-s-4.0.4.zip /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/ && rm omeka-s-4.0.4.zip
|
RUN unzip omeka-s-4.0.4.zip -d /var/www/html/ && rm omeka-s-4.0.4.zip
|
||||||
COPY config/database.ini /var/www/html/omeka-s/config/database.ini
|
|
||||||
|
##COPY config/database.ini /var/www/html/omeka-s/config/database.ini
|
||||||
|
|
||||||
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
|
# 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 && \
|
RUN chown -R nobody.nobody /var/www/html && \
|
||||||
chown -R nobody.nobody /run && \
|
chown -R nobody.nobody /run && \
|
||||||
@ -46,6 +49,9 @@ RUN chown -R nobody.nobody /var/www/html && \
|
|||||||
chown -R nobody.nobody /var/log/nginx && \
|
chown -R nobody.nobody /var/log/nginx && \
|
||||||
chown -R nobody.nobody /var/log/php82
|
chown -R nobody.nobody /var/log/php82
|
||||||
|
|
||||||
|
# Change to Omeka-s base dir
|
||||||
|
|
||||||
|
WORKDIR /var/www/html/omeka-s
|
||||||
|
|
||||||
# Switch to use a non-root user from here on
|
# Switch to use a non-root user from here on
|
||||||
USER nobody
|
USER nobody
|
||||||
|
Loading…
Reference in New Issue
Block a user