2021-12-22 19:24:05 +01:00
|
|
|
ARG DOCKER_REGISTRY="registry.gitlab.com/grassrootseconomics"
|
|
|
|
|
|
|
|
FROM $DOCKER_REGISTRY/cic-base-images:python-3.8.6-dev-e8eb2ee2
|
2021-05-20 16:31:08 +02:00
|
|
|
|
2021-07-05 19:14:46 +02:00
|
|
|
WORKDIR /root
|
|
|
|
|
2021-06-28 19:56:15 +02:00
|
|
|
RUN mkdir -vp /usr/local/etc/cic
|
2021-06-26 00:59:10 +02:00
|
|
|
|
2021-12-22 19:24:05 +01:00
|
|
|
ARG NPM_REPOSITORY=${NPM_REPOSITORY:-https://registry.npmjs.org}
|
|
|
|
RUN npm config set snyk=false
|
|
|
|
#RUN npm config set registry={NPM_REPOSITORY}
|
|
|
|
RUN npm config set registry=${NPM_REPOSITORY}
|
|
|
|
|
|
|
|
# copy the dependencies
|
|
|
|
COPY package.json package-lock.json ./
|
|
|
|
RUN --mount=type=cache,mode=0755,target=/root/.npm \
|
|
|
|
npm set cache /root/.npm && \
|
|
|
|
npm cache verify && \
|
|
|
|
npm ci --verbose
|
2021-05-20 16:31:08 +02:00
|
|
|
|
2021-08-31 20:43:01 +02:00
|
|
|
|
2021-12-22 19:24:05 +01:00
|
|
|
#RUN npm ci --production --verbose
|
2021-08-31 20:43:01 +02:00
|
|
|
#RUN --mount=type=cache,mode=0755,target=/root/node_modules npm install
|
2021-05-20 16:31:08 +02:00
|
|
|
|
2021-10-20 17:02:36 +02:00
|
|
|
COPY common/ cic_ussd/common/
|
2021-09-21 08:04:44 +02:00
|
|
|
COPY requirements.txt .
|
2021-10-20 17:02:36 +02:00
|
|
|
COPY config/ config
|
2021-05-20 16:31:08 +02:00
|
|
|
|
2021-12-10 15:55:50 +01:00
|
|
|
ARG EXTRA_PIP_INDEX_URL=https://pip.grassrootseconomics.net
|
2021-10-20 17:02:36 +02:00
|
|
|
ARG EXTRA_PIP_ARGS=""
|
|
|
|
ARG PIP_INDEX_URL=https://pypi.org/simple
|
|
|
|
|
|
|
|
RUN pip install --index-url $PIP_INDEX_URL \
|
2021-12-22 19:24:05 +01:00
|
|
|
--pre \
|
2021-12-10 15:55:50 +01:00
|
|
|
--extra-index-url $EXTRA_PIP_INDEX_URL $EXTRA_PIP_ARGS \
|
|
|
|
-r requirements.txt
|
2021-05-20 16:31:08 +02:00
|
|
|
|
2022-01-04 17:01:01 +01:00
|
|
|
COPY . .
|
2021-08-21 19:23:43 +02:00
|
|
|
|
2021-05-20 16:31:08 +02:00
|
|
|
ENTRYPOINT [ ]
|