-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (33 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM php:8-fpm-alpine
LABEL org.opencontainers.image.source=https://github.com/sepastian/omeka-s-docker
LABEL org.opencontainers.image.description Omeka S Docker image
LABEL org.opencontainers.image.authors="[email protected]"
ENV OMEKA_VERSION=4.0.4
WORKDIR /var/www/html
RUN apk add --update-cache --virtual build-dependencies \
unzip \
wget \
&& wget https://github.com/omeka/omeka-s/releases/download/v${OMEKA_VERSION}/omeka-s-${OMEKA_VERSION}.zip \
&& unzip omeka-s-${OMEKA_VERSION}.zip \
&& mv omeka-s/* . \
&& apk del build-dependencies \
&& rm -rf omeka-s*
RUN apk add \
freetype-dev \
jpeg-dev \
icu-dev \
imagemagick-dev \
imagemagick-jpeg \
libpng-dev \
libjpeg-turbo-dev \
sed \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl pdo_mysql
# Remove config/database.ini, which is empty;
# instead, OMEKA_DB_CONNECTION_URL will be set during startup.
RUN rm config/database.ini
# Make sure /var/www/html/files is owned by www-data.
# Run as www-data.
RUN mkdir -p /var/www/html/files \
&& chown -R www-data:www-data /var/www/html
USER www-data