I have a Dockerfile that looks like this:
FROM amazoncorretto:11-alpine3.16
# install dependencies
RUN apk --no-cache add curl bash
RUN mkdir /nextflow;
chmod 777 /nextflow;
cd /nextflow;
curl -s https://get.nextflow.io | bash;
chmod a+x /nextflow/nextflow;
RUN ln -s /nextflow/nextflow /usr/local/bin/nextflow;
chmod 777 /usr/local/bin/nextflow;
# install kubectl
RUN cd /usr/local/bin; curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"; chmod a+x kubectl
WORKDIR /nextflow
# SCM file might need to be overwritten
ADD scm /nextflow/scm_template
ENV NXF_SCM_FILE=/nextflow/scm
# Add stats gathering cron
ADD gather_stats.sh /nextflow/gather_stats.sh
ADD gather_stats_runner.sh /nextflow/gather_stats_runner.sh
ENV NXF_SCM_USER=''
ENV NXF_SCM_TOKEN=''
ENV NXF_STATS_INTERVAL_SECONDS=60
ENV NXF_STATS_ECHO=1
ENV NXF_STATS_COLLECT=1
ADD entrypoint.sh /nextflow/entrypoint.sh
ENTRYPOINT ["/bin/bash", "/nextflow/entrypoint.sh"]
When I run docker build -t my_app .
in a Mac with M1 chip and Docker version 26.0.0, build 2ae903e
, only 10/17 steps are ran. All the steps except for the ones where I declare ENV VARIABLE_NAME=some_val
are ran.
However, when I run the same command (docker build -t my_app .
) in a linux machine with Docker version 20.10.23, build 7155243
17/17 steps are ran, including those ones where I declare ENV...
.
I don’t understand why this is happening.