Skip to content

Commit

Permalink
Add license attribution to docker image (#22)
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <[email protected]>
  • Loading branch information
junqiu-lei authored Jul 28, 2022
1 parent 1c7ad0d commit 580e1a7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion opensearch-maps-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ FROM amazonlinux:2
WORKDIR /usr/src/app

RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash - && \
yum install -y nodejs wget tar gzip && \
yum install -y nodejs wget tar gzip unzip python37 && \
yum clean all

RUN pip3 install --no-cache --upgrade \
"requests>=2.18.4,<=2.22.0"

COPY package*.json ./
RUN npm install
COPY . .
Expand All @@ -19,4 +22,12 @@ RUN mkdir -p public/vectors/data && \
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]

EXPOSE 8080

RUN wget -O oss_compliance.zip https://aws-dlinfra-utilities.s3.amazonaws.com/oss_compliance.zip \
&& unzip oss_compliance.zip \
&& chmod +x oss_compliance/generate_oss_compliance.sh \
&& oss_compliance/generate_oss_compliance.sh /usr/src/app python3 \
&& cp oss_compliance/python_packages/piplicenses/PACKAGES_LICENSES_JSON.json PACKAGES_LICENSES_JSON.json \
&& rm -rf oss_compliance*

0 comments on commit 580e1a7

Please sign in to comment.