This is an innocuous warning that your

This is an innocuous warning that your Dockerfile defines this environment argument but doesn't use it. It is actually only useful in monorepos where you have multiple Actors in the same repo and you want to have shared code but know which directory was the Actor started from
2 Replies
genetic-orange
genetic-orange4mo ago
Thank you so much. But, where is this defined? I don't have it in my Dockerfile:
FROM python:3.11-slim-bookworm

LABEL maintainer="Vaclav Vancura <@vancura>"
LABEL description="Apify Actor for document processing using Docling"
LABEL version="1.0.0"

RUN groupadd -r appuser && useradd -r -g appuser -s /sbin/nologin appuser && \
\
apt-get update && apt-get install -y --no-install-recommends bash curl file git gpg jo jq procps xz-utils && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && apt-get install -y nodejs && apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
\
pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir docling==2.15.1 && \
npm install -g npm@latest && \
npm install -g apify-cli && \
npm cache clean --force

WORKDIR /app

RUN chown appuser:appuser /app && \
mkdir -p /tmp/runtime-root && \
chmod 0700 /tmp/runtime-root && \
chown -R appuser:appuser /tmp/runtime-root

COPY --chown=appuser:appuser .actor/ .actor/
COPY --chown=appuser:appuser . .

USER appuser

ENTRYPOINT [".actor/actor.sh"]
FROM python:3.11-slim-bookworm

LABEL maintainer="Vaclav Vancura <@vancura>"
LABEL description="Apify Actor for document processing using Docling"
LABEL version="1.0.0"

RUN groupadd -r appuser && useradd -r -g appuser -s /sbin/nologin appuser && \
\
apt-get update && apt-get install -y --no-install-recommends bash curl file git gpg jo jq procps xz-utils && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && apt-get install -y nodejs && apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
\
pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir docling==2.15.1 && \
npm install -g npm@latest && \
npm install -g apify-cli && \
npm cache clean --force

WORKDIR /app

RUN chown appuser:appuser /app && \
mkdir -p /tmp/runtime-root && \
chmod 0700 /tmp/runtime-root && \
chown -R appuser:appuser /tmp/runtime-root

COPY --chown=appuser:appuser .actor/ .actor/
COPY --chown=appuser:appuser . .

USER appuser

ENTRYPOINT [".actor/actor.sh"]
So, if I understand this correctly, it seems the ACTOR_PATH_IN_DOCKER_CONTEXT is coming from the Apify build system, passing an unused argument, not my Docker. I can always suppress the warning in my Dockerfile, of course, and I probably will. I was just wondering what it could be. Thank you!
sensitive-blue
sensitive-blue4mo ago
Yeah, it likely comes from Actor directly

Did you find this page helpful?