-
Notifications
You must be signed in to change notification settings - Fork 141
docs: upgrades for privilege-less Docker images #1817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
ac74fdb
ac630c2
c60e17b
de6bb50
835df6f
616cc20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,7 +26,7 @@ All Apify Docker images are pre-cached on Apify servers to speed up Actor builds | |||||
|
|
||||||
| ### Node.js base images | ||||||
|
|
||||||
| These images come with Node.js (versions `16`, `18`, `20`, or `22`) the [Apify SDK for JavaScript](/sdk/js), and [Crawlee](https://crawlee.dev/) preinstalled. The `latest` tag corresponds to the latest LTS version of Node.js. | ||||||
| These images come with Node.js (versions `20`, `22`, or `24`) the [Apify SDK for JavaScript](/sdk/js), and [Crawlee](https://crawlee.dev/) preinstalled. The `latest` tag corresponds to the latest LTS version of Node.js. | ||||||
|
|
||||||
| | Image | Description | | ||||||
| | ----- | ----------- | | ||||||
|
|
@@ -41,7 +41,7 @@ See the [Docker image guide](/sdk/js/docs/guides/docker-images) for more details | |||||
|
|
||||||
| ### Python base images | ||||||
|
|
||||||
| These images come with Python (version `3.8`, `3.9`, `3.10`, `3.11`, or `3.12`) and the [Apify SDK for Python](/sdk/python) preinstalled. The `latest` tag corresponds to the latest Python 3 version supported by the Apify SDK. | ||||||
| These images come with Python (version `3.9`, `3.10`, `3.11`, `3.12`, or `3.13`) and the [Apify SDK for Python](/sdk/python) preinstalled. The `latest` tag corresponds to the latest Python 3 version supported by the Apify SDK. | ||||||
|
|
||||||
| | Image | Description | | ||||||
| | ----- | ----------- | | ||||||
|
|
@@ -61,9 +61,9 @@ To use a custom `Dockerfile`, you can either: | |||||
| If no `Dockerfile` is provided, the system uses the following default: | ||||||
|
|
||||||
| ```dockerfile | ||||||
| FROM apify/actor-node:20 | ||||||
| FROM apify/actor-node:24 | ||||||
|
|
||||||
| COPY package*.json ./ | ||||||
| COPY --chown=myuser:myuser package*.json ./ | ||||||
|
|
||||||
| RUN npm --quiet set progress=false \ | ||||||
| && npm install --only=prod --no-optional \ | ||||||
|
|
@@ -74,7 +74,7 @@ RUN npm --quiet set progress=false \ | |||||
| && echo "NPM version:" \ | ||||||
| && npm --version | ||||||
|
|
||||||
| COPY . ./ | ||||||
| COPY --chown=myuser:myuser . ./ | ||||||
| ``` | ||||||
|
|
||||||
| For more information about `Dockerfile` syntax and commands, see the [Dockerfile reference](https://docs.docker.com/reference/dockerfile/). | ||||||
|
|
@@ -112,3 +112,109 @@ This means the system expects the source code to be in `main.js` by default. If | |||||
| You can check out various optimization tips for Dockerfile in our [Performance](../performance.md) documentation. | ||||||
|
|
||||||
| ::: | ||||||
|
|
||||||
| ## Updating older Dockerfiles | ||||||
|
|
||||||
| Certain Apify base Docker images now use a non-root user to enhance security. This change requires updates to existing Actor `Dockerfile`s that use the `apify/actor-node`, `apify/actor-python`, `apify/actor-python-playwright`, or `apify/actor-python-selenium` images. This section provides guidance on resolving common issues that may arise during this migration. | ||||||
|
|
||||||
| :::danger Action required | ||||||
|
|
||||||
| The base Docker images display a deprecation warning. This warning will be removed in future versions, so you should update your Dockerfiles to ensure forward compatibility. | ||||||
|
||||||
| The base Docker images display a deprecation warning. This warning will be removed in future versions, so you should update your Dockerfiles to ensure forward compatibility. | |
| The base Docker images display a deprecation warning. This warning will be removed in Q1 2026, so you should update your Dockerfiles to ensure forward compatibility. |
And then make a note in calendar to remove the whole admonition after we drop the warning. Would that work for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good
Uh oh!
There was an error while loading. Please reload this page.