Update Docker configs
This commit updates the Dockerfile so that the image is built on top of the nodejs Long-term support (LTS) version. Manually bumping the nodejs version is no longer required. Additionally, the ports definition in docker-compose.yml is quoted as string, as suggested in the reference documentation.
This commit is contained in:
parent
492797f2a5
commit
3d4713a701
2 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
FROM node:10-buster as build
|
FROM node:lts as build
|
||||||
RUN mkdir /tmp/brouter-web
|
RUN mkdir /tmp/brouter-web
|
||||||
WORKDIR /tmp/brouter-web
|
WORKDIR /tmp/brouter-web
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ services:
|
||||||
command: yarn serve
|
command: yarn serve
|
||||||
image: node:lts
|
image: node:lts
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- '3000:3000'
|
||||||
user: '1000'
|
user: '1000'
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/src
|
- ./:/src
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue