-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (20 loc) · 1002 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Container image that runs your code
FROM adoptopenjdk/openjdk15-openj9:debianslim-jre
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
COPY populate_scc.sh /populate_scc.sh
COPY sccinput /tmp/sccinput
RUN apt update && apt -y --no-install-recommends install wget unzip git \
&& mkdir -p /opt \
&& mkdir -p /tmp/sccoutput \
&& wget -q "https://github.com/scms/scms/releases/download/v0.4.0/scms-0.4.0.zip" -O /opt/scms-0.4.0.zip \
&& cd /opt \
&& unzip /opt/scms-0.4.0.zip \
&& mv /opt/scms-0.4.0 /opt/scms \
&& chmod u+x /opt/scms/bin/scms /entrypoint.sh /populate_scc.sh \
&& apt purge -y wget unzip && apt autoremove --purge -y \
&& rm -rf /var/cache/apt/
RUN /populate_scc.sh \
&& rm -rf /tmp/sccinput /tmp/sccoutput
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]