fix docker
This commit is contained in:
30
Dockerfile
30
Dockerfile
@@ -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"]
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user