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
|
# sideways staying sideways. pcntl lets the queue worker shut down cleanly
|
||||||
# instead of being killed mid-job.
|
# instead of being killed mid-job.
|
||||||
RUN install-php-extensions \
|
RUN install-php-extensions \
|
||||||
pdo_pgsql \
|
pdo_pgsql \
|
||||||
gd \
|
gd \
|
||||||
exif \
|
exif \
|
||||||
intl \
|
intl \
|
||||||
zip \
|
zip \
|
||||||
pcntl \
|
pcntl \
|
||||||
opcache \
|
opcache \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends postgresql-client \
|
&& apt-get install -y --no-install-recommends postgresql-client \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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
|
# application cannot boot before its code is here. They are run explicitly in
|
||||||
# the runtime stage instead, where everything exists.
|
# the runtime stage instead, where everything exists.
|
||||||
RUN composer install \
|
RUN composer install \
|
||||||
--no-dev \
|
--no-dev \
|
||||||
--no-scripts \
|
--no-scripts \
|
||||||
--no-autoloader \
|
--no-autoloader \
|
||||||
--prefer-dist \
|
--prefer-dist \
|
||||||
--no-interaction
|
--no-interaction
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ RUN touch .env \
|
|||||||
FROM base AS runtime
|
FROM base AS runtime
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="Pireon Admin" \
|
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
|
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
|
RUN chown -R www-data:www-data storage bootstrap/cache
|
||||||
|
|
||||||
ENV SERVER_NAME=:80
|
ENV SERVER_NAME=:8080
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 8080
|
||||||
|
|
||||||
ENTRYPOINT ["entrypoint"]
|
ENTRYPOINT ["entrypoint"]
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ services:
|
|||||||
# Only here: migrations run once per deploy, not once per container.
|
# Only here: migrations run once per deploy, not once per container.
|
||||||
RUN_MIGRATIONS: "true"
|
RUN_MIGRATIONS: "true"
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "8080"
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
- default
|
- default
|
||||||
|
|||||||
Reference in New Issue
Block a user