Skip to content

Commit

Permalink
fix: Update Dockerfile to install systemd and adjust service file path
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAnyx committed Jan 3, 2025
1 parent ba8baba commit d24e8e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:8.3.15-apache AS base
RUN apt-get update && apt-get install -y systemd
WORKDIR /var/www/html
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN apt-get install -y systemd
RUN install-php-extensions intl
RUN install-php-extensions opcache
RUN install-php-extensions zip
Expand All @@ -24,7 +24,7 @@ ENV APP_ENV=prod
ENV APP_DEBUG=0
RUN cp $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini
COPY . .
COPY ./.docker/messenger-worker@.service ~/.config/systemd/user
COPY ./.docker/messenger-worker@.service /etc/systemd/system
ADD --chmod=0755 ./.docker/entrypoint.prod.sh /usr/local/bin/entrypoint.sh
RUN composer install --no-dev --optimize-autoloader --no-interaction
RUN php bin/console cache:clear && php bin/console cache:warmup
Expand Down

0 comments on commit d24e8e0

Please sign in to comment.