HOME variable is not set

We are trying to build an custom enviroment.
When we run on reana the HOME is set to /
The CASA software is failing to run.
Are there way to tell that HOME to set to REANA_WORKSPACE?
Here is the example of docker:

# Use a base Linux distribution
FROM ubuntu:latest
# Set environment variables
ENV CASA_DIR /usr/local/casa
# Install system-level dependencies (adjust as needed)
RUN apt-get update && apt-get install -y \
    wget \
    build-essential \
    libssl-dev \
    zlib1g-dev \
    # Add other necessary packages here \
    && apt-get clean
# Download CASA package (replace with the actual download link)
RUN wget -q https://casa.nrao.edu/download/distro/casa-pipeline/release/linux/casa-6.5.4-9-pipeline-2023.1.0.124-py3.8.tar.xz -O /tmp/casa.tar.gz
# Extract CASA package
RUN mkdir -p $CASA_DIR && tar -xvf /tmp/casa.tar.gz -C $CASA_DIR --strip-components=1
# Set PATH environment variable to include CASA binaries (adjust as needed)
ENV PATH="${CASA_DIR}/bin:${PATH}"

reana.yaml

version: 0.3.0
inputs:
  files:
    - J0614+6108-spw32.ms
    - listobs.py
    - .env
workflow:
  type: serial
  specification:
    steps:
      - environment: 'gitlab-p4n.aip.de:5005/p4nreana/reana-env:casa.10534'
        commands:
           - pwd
           - env
           - casa ~/

Error:
CASA exits with a non-zero status : unexpected exception raised in casashell init: PermissionError [Errno 13] Permission denied: ‘/.casa’

Thank you.

found a workaround by expirting HOME=./ in a docker
ENV HOME=./
(totally forgot about this)