Files
rxnorm/Dockerfile.web
T

30 lines
678 B
Docker

ARG SONARLOGIN=''
ARG VERSION=0.0.0
FROM node:18.16.0 as build
ARG SONARLOGIN
ARG VERSION
ENV CI=true
# Set working directory
WORKDIR /app
# Install dependencies
RUN npm config set @strata:registry http://proget.sdt.local/npm/npm
RUN npm config set strict-ssl false
COPY src/Strata.RxNorm.Web/rxnorm/package*.json ./
RUN npm install --legacy-peer-deps
RUN npm ci --legacy-peer-deps
# Copy in rest of app and build
COPY src/Strata.RxNorm.Web/rxnorm .
RUN npm run build
# Run the UI tests
RUN npm run test-ci
# Build release container
FROM nginx:alpine
COPY --from=build /app/build /usr/share/nginx/html
COPY src/Strata.RxNorm.Web/nginx.conf /etc/nginx/conf.d/default.conf