Skip to content

Commit b76f9f6

Browse files
committed
use .nvmrc in the docker file
1 parent e5ba8fb commit b76f9f6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

DOCKER_README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Install [Docker Desktop](https://docs.docker.com/get-docker/).
88
## Build the image
99

1010
```bash
11-
docker build -t algolia-js .
11+
docker build -t algolia-js --build-arg NODE_IMAGE=node:$(cat .nvmrc)-alpine .
1212
```
1313

1414
## Run the image

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Dockerfile
2-
FROM node:12.16.2-alpine
2+
ARG NODE_IMAGE=node:12.16.0-alpine
3+
4+
FROM $NODE_IMAGE
35

46
# Install the dependencies in the parent folder so they don't get overriden by the bind mount
57
WORKDIR /

0 commit comments

Comments
 (0)