Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions ui/Containerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
FROM node:10 as base
FROM docker.io/library/node:14.21.2-alpine as base
WORKDIR /app

FROM base as node_modules
# Install node_modules
COPY package.json .
COPY package-lock.json .
RUN npm i

FROM base as build
RUN npm ci
# Copy application files
COPY public public
COPY src src
COPY .browserslistrc .
COPY .eslintrc.js .
COPY babel.config.js .
COPY vue.config.js .
COPY package.json .
COPY package-lock.json .
COPY --from=node_modules /app/node_modules node_modules
# Build dist
ENV NODE_ENV=production
RUN npm run build
4 changes: 4 additions & 0 deletions ui/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# NethVoice Report UI

## Node Version

Due to compatibility issues with `node-sass` and node >= `14`, please use only node `14.x` and npm `6.x`. You can use [nvm](https://github.com/nvm-sh/nvm) to get a node `14` up and running.

## Project setup
```
npm install
Expand Down
Loading