mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireSync.git
synced 2026-05-31 23:54:06 +08:00
* feat: switch to symfony/skeleton 7.2 * chore: move AspirePress\AspireSync -> App * refactor: rm styled output which is redundant with monolog * docs: update README for bin/console * refactor: rename commands to all use sync: prefix * chore: rm bin/aspiresync * feat: add SyncAsset and SyncResource entities * chore: add doctrine-migrations-bindle * feat: add migration * feat: new docker-compose stack * chore: switch to postgres backend
28 lines
773 B
Docker
28 lines
773 B
Docker
FROM dunglas/frankenphp:1.2.5-php8.3 AS base
|
|
|
|
COPY --from=composer:2.8.3 /usr/bin/composer /usr/bin/composer
|
|
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/download/2.5.2/install-php-extensions /usr/local/bin/
|
|
|
|
RUN apt update && apt install -y bash subversion zip
|
|
|
|
RUN install-php-extensions intl pdo pdo_pgsql pdo_sqlite zip
|
|
|
|
COPY ./docker/webapp/Caddyfile /etc/caddy/Caddyfile
|
|
COPY ./docker/webapp/php.ini /usr/local/etc/php/php.ini
|
|
|
|
WORKDIR /app
|
|
|
|
################
|
|
FROM base AS dev
|
|
|
|
RUN apt update && apt install -y git postgresql-client sqlite3
|
|
|
|
RUN install-php-extensions xdebug
|
|
|
|
################
|
|
FROM base AS prod
|
|
|
|
COPY . /app
|
|
|
|
RUN composer install --no-dev --no-interaction --no-progress --optimize-autoloader --working-dir=/app
|
|
|