Are environment variables established in the Dockerfile available in actions workflow?

There are environment variables set in this Dockerfile that don’t seem to be available after the docker is run in the actions workflow.

# Dockerfile snippet
# Setup environment
ENV MAYA_LOCATION=/usr/autodesk/maya/
ENV PATH=$MAYA_LOCATION/bin:$PATH

My hunch is to move these environment variables from the Dockerfile to an entrypoint.sh–curious what you think or would do.

Solved–environment variables set in the Dockerfile are available in actions workflow.

I created a new Dockerfile that referenced the one I linked to and added included an entrypoint script:

FROM mottosso/maya:2018
WORKDIR /root
COPY entrypoint.sh /root/entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]

In entrypoint.sh:

#!/bin/bash
set -e

echo ">>>> ENVIRONMENT VARIABLES"
env