I'm copying aliases.sh
into an alpine-based container:
FROM php:8.1-fpm-alpine AS php
COPY .docker/aliases.sh /etc/profile.d/
CMD ["php-fpm"]
When I log into the shell, my aliases won't work. If I run:
source /etc/profile
The suddenly start working. Maybe I need to add source
command into my Dockerfile
but.. it doesn't make sense to me.