We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ba8fb commit b76f9f6Copy full SHA for b76f9f6
DOCKER_README.MD
@@ -8,7 +8,7 @@ Install [Docker Desktop](https://docs.docker.com/get-docker/).
8
## Build the image
9
10
```bash
11
-docker build -t algolia-js .
+docker build -t algolia-js --build-arg NODE_IMAGE=node:$(cat .nvmrc)-alpine .
12
```
13
14
## Run the image
Dockerfile
@@ -1,5 +1,7 @@
1
# Dockerfile
2
-FROM node:12.16.2-alpine
+ARG NODE_IMAGE=node:12.16.0-alpine
3
+
4
+FROM $NODE_IMAGE
5
6
# Install the dependencies in the parent folder so they don't get overriden by the bind mount
7
WORKDIR /
0 commit comments