Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
tms | 4f795ee82d | |
tms | f07c3417cb |
|
@ -12,7 +12,7 @@ RUN apk --update add ca-certificates
|
|||
|
||||
# Install packages
|
||||
RUN apk --no-cache add php82 php82-fpm php82-opcache php82-openssl php82-curl php82-pdo php82-pdo_mysql php82-session \
|
||||
php82-mbstring php82-fileinfo php82-xml nginx supervisor curl unzip imagemagick
|
||||
php82-mbstring php82-fileinfo php82-xml nginx supervisor curl unzip
|
||||
|
||||
# https://github.com/codecasts/php-alpine/issues/21
|
||||
#RUN ln -s /usr/bin/php7 /usr/bin/php
|
||||
|
@ -43,23 +43,18 @@ 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
|
||||
|
||||
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
|
||||
|
||||
# Create docker user and group of id's 1000
|
||||
|
||||
RUN addgroup -S dockergroup -g 1000 && adduser -S dockeruser -u 1000 -G dockergroup
|
||||
|
||||
RUN chown -R 1000:1000 /var/www/html && \
|
||||
chown -R 1000:1000 /run && \
|
||||
chown -R 1000:1000 /var/lib/nginx && \
|
||||
chown -R 1000:1000 /var/log/nginx && \
|
||||
chown -R 1000:1000 /var/log/php82
|
||||
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 && \
|
||||
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
|
||||
USER dockeruser
|
||||
USER nobody
|
||||
|
||||
# Add application
|
||||
# WORKDIR /var/www/html
|
||||
|
|
|
@ -11,11 +11,9 @@ services:
|
|||
- sample.env
|
||||
ports:
|
||||
- 127.0.0.1:3306:3306
|
||||
volumes:
|
||||
- /srv/pv/omeka/db/:/var/lib/mysql/
|
||||
|
||||
omeka:
|
||||
image: tms/omekas:josz
|
||||
image: omeka-docker-dev
|
||||
container_name: omeka-s
|
||||
restart: always
|
||||
ports:
|
||||
|
@ -23,8 +21,8 @@ services:
|
|||
volumes:
|
||||
- ./config/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./config/database.ini:/var/www/html/omeka-s/config/database.ini
|
||||
- /srv/pv/omeka/assets/modules/:/var/www/html/omeka-s/modules/
|
||||
- /srv/pv/omeka/assets/themes/:/var/www/html/omeka-s/themes/
|
||||
- ./assets/modules/:/var/www/html/omeka-s/modules/
|
||||
- ./assets/themes/:/var/www/html/omeka-s/themes/
|
||||
|
||||
#volumes:
|
||||
# omeka:
|
||||
|
|
Loading…
Reference in New Issue