1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 05:54:55 +00:00
Arsse/Dockerfile

42 lines
1.1 KiB
Text
Raw Normal View History

2024-07-05 14:50:36 +00:00
#### Copy stage ####
FROM mensbeam/baseimage_alpine:latest AS copy-stage
ARG VENDOR_DIR
2024-07-05 14:50:36 +00:00
RUN mkdir -p /copy/app/arsse
COPY dist/docker /copy
COPY arsse.php /copy/app/arsse/
COPY composer.json /copy/app/arsse/
COPY composer.lock /copy/app/arsse/
COPY lib /copy/app/arsse/lib
COPY ${VENDOR_DIR} /copy/app/arsse/vendor
COPY www /copy/app/arsse/www
RUN ln -s /config/arsse/config.php /copy/app/arsse/config.php
2024-07-05 14:50:36 +00:00
#### Runtime stage ####
FROM mensbeam/baseimage_alpine:latest
RUN apk add --no-cache \
gnu-libiconv \
libxml2 \
logrotate \
2024-07-05 14:50:36 +00:00
nginx \
php-fpm \
php83-dom \
php83-iconv \
2024-07-05 14:50:36 +00:00
php83-intl \
php83-mysqli \
php83-pcntl \
php83-pdo_mysql \
php83-pdo_pgsql \
php83-pdo_sqlite \
php83-pgsql \
php83-posix \
php83-sqlite3 && \
sed -i "s#/var/log/messages {}.*# #g" /etc/logrotate.conf && \
sed -i 's#/usr/sbin/logrotate /etc/logrotate.conf#/usr/sbin/logrotate /etc/logrotate.conf -s /config/log/logrotate.status#g' /etc/periodic/daily/logrotate
2024-07-05 14:50:36 +00:00
COPY --from=copy-stage /copy/ /
EXPOSE 80 443
VOLUME /config