fix docker
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / test-postgres (push) Has been cancelled

This commit is contained in:
2026-08-22 23:27:07 +02:00
parent 2a58833190
commit ffde884f5b
2 changed files with 16 additions and 16 deletions

View File

@@ -20,13 +20,13 @@ WORKDIR /app
# sideways staying sideways. pcntl lets the queue worker shut down cleanly
# instead of being killed mid-job.
RUN install-php-extensions \
pdo_pgsql \
gd \
exif \
intl \
zip \
pcntl \
opcache \
pdo_pgsql \
gd \
exif \
intl \
zip \
pcntl \
opcache \
&& apt-get update \
&& apt-get install -y --no-install-recommends postgresql-client \
&& rm -rf /var/lib/apt/lists/*
@@ -49,11 +49,11 @@ COPY composer.json composer.lock ./
# application cannot boot before its code is here. They are run explicitly in
# the runtime stage instead, where everything exists.
RUN composer install \
--no-dev \
--no-scripts \
--no-autoloader \
--prefer-dist \
--no-interaction
--no-dev \
--no-scripts \
--no-autoloader \
--prefer-dist \
--no-interaction
COPY . .
@@ -93,7 +93,7 @@ RUN touch .env \
FROM base AS runtime
LABEL org.opencontainers.image.title="Pireon Admin" \
org.opencontainers.image.description="Admin panel and REST API for the collective"
org.opencontainers.image.description="Admin panel and REST API for the collective"
COPY docker/Caddyfile /etc/caddy/Caddyfile
@@ -113,9 +113,9 @@ RUN php artisan package:discover --ansi \
RUN chown -R www-data:www-data storage bootstrap/cache
ENV SERVER_NAME=:80
ENV SERVER_NAME=:8080
EXPOSE 80
EXPOSE 8080
ENTRYPOINT ["entrypoint"]

View File

@@ -128,7 +128,7 @@ services:
# Only here: migrations run once per deploy, not once per container.
RUN_MIGRATIONS: "true"
expose:
- "80"
- "8080"
networks:
- dokploy-network
- default