mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
35 lines
No EOL
764 B
Docker
35 lines
No EOL
764 B
Docker
#### Copy stage ####
|
|
FROM mensbeam/baseimage_alpine:latest as copy-stage
|
|
|
|
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 www /copy/app/arsse/www
|
|
COPY lib /copy/app/arsse/lib
|
|
|
|
#### Runtime stage ####
|
|
FROM mensbeam/baseimage_alpine:latest
|
|
|
|
RUN apk add --no-cache \
|
|
composer \
|
|
gnu-libiconv \
|
|
libxml2 \
|
|
nginx \
|
|
php-fpm \
|
|
php83-dom \
|
|
php83-intl \
|
|
php83-mysqli \
|
|
php83-pcntl \
|
|
php83-pdo_mysql \
|
|
php83-pdo_pgsql \
|
|
php83-pdo_sqlite \
|
|
php83-pgsql \
|
|
php83-posix \
|
|
php83-sqlite3
|
|
|
|
COPY --from=copy-stage /copy/ /
|
|
|
|
EXPOSE 80 443
|
|
VOLUME /config |