Skip to content

Commit

Permalink
Improved Dockerfile syntax to prevent unwanted behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Dec 2, 2024
1 parent fda21a4 commit d9d98a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WORKDIR /var/www/html
COPY --chown=www-data:www-data . .

# Use the default or custom PHP configuration (if exists)
RUN mv $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini && \
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
if [ -f "docker/php.ini" ]; then \
mv "docker/php.ini" "$PHP_INI_DIR/php.ini"; \
fi
Expand Down

0 comments on commit d9d98a5

Please sign in to comment.