mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
45 lines
No EOL
1.2 KiB
Docker
45 lines
No EOL
1.2 KiB
Docker
#### Copy stage ####
|
|
FROM mensbeam/baseimage_alpine:latest AS copy-stage
|
|
|
|
ARG VENDOR_DIR
|
|
|
|
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
|
|
|
|
#### Runtime stage ####
|
|
FROM mensbeam/baseimage_alpine:latest
|
|
|
|
RUN apk add --no-cache \
|
|
gnu-libiconv \
|
|
libxml2 \
|
|
logrotate \
|
|
nginx \
|
|
php83 \
|
|
php83-dom \
|
|
php83-fpm \
|
|
php83-iconv \
|
|
php83-intl \
|
|
php83-mysqli \
|
|
php83-pcntl \
|
|
php83-pdo_mysql \
|
|
php83-pdo_pgsql \
|
|
php83-pdo_sqlite \
|
|
php83-pgsql \
|
|
php83-posix \
|
|
php83-simplexml \
|
|
php83-sqlite3 \
|
|
php83-xml && \
|
|
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
|
|
|
|
COPY --from=copy-stage /copy/ /
|
|
|
|
EXPOSE 80 443
|
|
VOLUME /config |