From 3d4713a701d8cb41f3c5747f56f2dd15ccb5d8ba Mon Sep 17 00:00:00 2001 From: Marcus Jaschen Date: Sun, 21 Nov 2021 09:23:41 +0100 Subject: [PATCH] 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. --- Dockerfile | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c644cd..6c13dcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:10-buster as build +FROM node:lts as build RUN mkdir /tmp/brouter-web WORKDIR /tmp/brouter-web COPY . . diff --git a/docker-compose.yml b/docker-compose.yml index 243ea71..b39ed88 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: command: yarn serve image: node:lts ports: - - 3000:3000 + - '3000:3000' user: '1000' volumes: - ./:/src