Skip to content

Commit 61ecf29

Browse files
authored
chore(build): update node.js version (#243)
* chore(build): update node.js version * chore(build): switch to alpine base
1 parent 27bf261 commit 61ecf29

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Use this Dockerfile for production builds
22
# Use node image to install Vue dependencies
3-
FROM node:14.2 as vue-dependencies
3+
FROM node:16 as vue-dependencies
44

55
# Set the working directory for the project in container
66
WORKDIR /app

Diff for: frontend/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base image node to install Vue dependencies
2-
FROM node:14.2 AS build-stage
2+
FROM node:16-alpine AS build-stage
33

44
WORKDIR /app
55

@@ -12,4 +12,3 @@ COPY . .
1212
RUN yarn build
1313
RUN npm install -g serve
1414
ENTRYPOINT serve -s dist
15-

Diff for: frontend/Dockerfile-dev

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base image node to install Vue dependencies
2-
FROM node:14.2 AS build-stage
2+
FROM node:16-alpine AS build-stage
33

44
WORKDIR /app
55

@@ -9,4 +9,4 @@ RUN yarn install
99

1010
# Build dependencies into dist folder, copy line may change as we restructure
1111
COPY . .
12-
ENTRYPOINT yarn serve
12+
ENTRYPOINT yarn serve

0 commit comments

Comments
 (0)