2021-05-20 16:31:08 +02:00
|
|
|
# syntax = docker/dockerfile:1.2
|
2021-06-28 19:56:15 +02:00
|
|
|
FROM registry.gitlab.com/grassrootseconomics/cic-base-images:python-3.8.6-dev-5ab8bf45
|
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-07-10 17:46:14 +02:00
|
|
|
COPY package.json \
|
|
|
|
package-lock.json \
|
2021-06-28 19:56:15 +02:00
|
|
|
.
|
2021-05-20 16:31:08 +02:00
|
|
|
|
2021-07-05 19:14:46 +02:00
|
|
|
RUN --mount=type=cache,mode=0755,target=/root/node_modules npm install
|
2021-05-20 16:31:08 +02:00
|
|
|
|
2021-07-10 17:46:14 +02:00
|
|
|
COPY requirements.txt .
|
2021-05-20 16:31:08 +02:00
|
|
|
|
2021-06-26 00:59:10 +02:00
|
|
|
ARG EXTRA_INDEX_URL="https://pip.grassrootseconomics.net:8433"
|
2021-06-28 19:56:15 +02:00
|
|
|
ARG GITLAB_PYTHON_REGISTRY="https://gitlab.com/api/v4/projects/27624814/packages/pypi/simple"
|
2021-07-05 19:14:46 +02:00
|
|
|
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install \
|
|
|
|
--extra-index-url $GITLAB_PYTHON_REGISTRY \
|
|
|
|
--extra-index-url $EXTRA_INDEX_URL -r requirements.txt
|
2021-05-20 16:31:08 +02:00
|
|
|
|
2021-07-10 17:46:14 +02:00
|
|
|
COPY . .
|
2021-08-19 18:29:41 +02:00
|
|
|
RUN chmod +x scripts/*
|
2021-05-20 16:31:08 +02:00
|
|
|
ENTRYPOINT [ ]
|