Skip to content

Commit

Permalink
Updated node version (18 is now LTS) in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Hallbergs committed Dec 5, 2022
1 parent 47267c2 commit 5bcb3c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Stage 1 - Building the backend
FROM node:16-alpine as backendBuilder
FROM node:18-alpine as backendBuilder
WORKDIR /usr/app
COPY /new-backend/package*.json ./
RUN npm ci
COPY ./new-backend .
RUN npm run compile

# Stage 2 - Building the client
FROM node:16-alpine as clientBuilder
FROM node:18-alpine as clientBuilder
WORKDIR /usr/app
COPY /new-client/package*.json ./
RUN npm ci --ignore-scripts
Expand All @@ -17,7 +17,7 @@ RUN mv ./public/appConfig.docker.json ./public/appConfig.json
RUN npm run build --ignore-scripts

# Stage 3 - Building the admin
FROM node:16-alpine as adminBuilder
FROM node:18-alpine as adminBuilder
WORKDIR /usr/app
COPY /new-admin/package*.json ./
RUN npm ci --ignore-scripts
Expand All @@ -27,7 +27,7 @@ RUN mv ./public/config.docker.json ./public/config.json
RUN npm run build --ignore-scripts

# Stage 4 - Combine everything and fire it up
FROM node:14-alpine
FROM node:18-alpine
WORKDIR /usr/app
COPY /new-backend/package*.json ./
RUN npm ci --production
Expand Down

0 comments on commit 5bcb3c6

Please sign in to comment.