Dockerfile: Allow one to pass a npmrc file

This commit is contained in:
Yanis Guenane 2019-09-11 16:15:50 +02:00
parent 0e5abb5fa3
commit 2ea280bbaf
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,8 @@
FROM centos:7
ARG NPMRC_FILE=awx/ui/.npmrc
ENV NPMRC_FILE=${NPMRC_FILE}
RUN yum -y update && yum -y install epel-release && yum -y install https://centos7.iuscommunity.org/ius-release.rpm
RUN yum install -y \
@ -15,7 +18,9 @@ WORKDIR /awx
COPY awx/ui/package.json awx/ui/package.json
RUN npm --prefix=awx/ui install
COPY ${NPMRC_FILE} awx/ui/.npmrc
RUN npm --prefix=awx/ui config list && npm --prefix=awx/ui install
COPY awx/ui/test/e2e awx/ui/test/e2e

View File

@ -39,3 +39,4 @@ services:
AWX_E2E_CLUSTER_HOST: hub
AWX_E2E_CLUSTER_PORT: 4444
DBUS_SESSION_BUS_ADDRESS: /dev/null
NPMRC_FILE: ${NPMRC_FILE}