Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
16 changes: 5 additions & 11 deletions docker/production/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the FrankenPHP image for building/running composer
FROM ghcr.io/mintopia/php-frankenphp-base:8.4.10 AS composer
FROM ghcr.io/mintopia/php:8.4-alpine-cli AS composer

WORKDIR /app/
ENV HOME=/tmp
Expand Down Expand Up @@ -30,17 +30,11 @@ RUN npm install --production=false && \
npm run build

# Now our final image
FROM ghcr.io/mintopia/php-frankenphp-base:8.4.10
FROM ghcr.io/mintopia/php:8.4-alpine-frankenphp
LABEL org.opencontainers.image.authors="jess@mintopia.net"

COPY --from=npm /app /app
COPY docker/production/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh && \
COPY docker/production/00-entrypoint.sh /docker-entrypoint.d/00-entrypoint.sh
RUN chmod +x /docker-entrypoint.d/00-entrypoint.sh && \
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
echo 'memory_limit = 512M' > /usr/local/etc/php/conf.d/memory_limit.ini && \
echo 'session.upload_progress.enabled = 0' > /usr/local/etc/php/conf.d/session_upload_progress.ini \

COPY docker/Caddyfile /

ENTRYPOINT ["/entrypoint.sh"]
CMD ["php", "artisan", "octane:frankenphp", "--caddyfile=/Caddyfile", "--admin-host=0.0.0.0", "--port=80"]
echo 'memory_limit = 512M' > /usr/local/etc/php/conf.d/memory_limit.ini
Loading