Skip to content

Commit

Permalink
ci: update nodejs to 18 in container
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 23, 2023
1 parent afe4d97 commit f080192
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM node:14.7-alpine as aepp-aepp-base-build
FROM node:18-alpine as aepp-aepp-base-build
WORKDIR /app
RUN apk add make gcc g++ python git
RUN apk add make g++ python3 git

ADD package*.json ./
RUN npm install
# TODO: remove --force after updating dependencies
RUN npm ci --force

COPY . .

Expand All @@ -14,9 +15,10 @@ ARG VUE_APP_EXPLORER_URL
ARG VUE_APP_COMPILER_URL
ARG VUE_APP_REMOTE_CONNECTION_BACKEND_URL

RUN npm run build
# TODO: remove legacy openssl after updating @vue/cli
RUN NODE_OPTIONS=--openssl-legacy-provider npm run build

FROM nginx:1.13.9-alpine
FROM nginx:1.24-alpine
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=aepp-aepp-base-build /app/dist /usr/share/nginx/html

0 comments on commit f080192

Please sign in to comment.