How can I access environment variables defined in .env file in shell script?
.env file
USERNAME=user
PASSWORD=pass
Dockerfile
....
COPY ./compose/django/celery/worker/start_celery_flower.sh /start_celery_flower.sh
RUN sed -i 's/\r//' /start_celery_flower.sh
RUN chmod +x /start_celery_flower.sh
....
I tried using $USERNAME in shell script, but that is not working. I am able to access these variables in application running inside container.