-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 909 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM gradle:jdk21-alpine
# Make directory for processing
RUN mkdir /Processor_specifications_collector
WORKDIR /Processor_specifications_collector
# COPY Folders
ADD app app
ADD gradle gradle
ADD specifications_out specifications_out
# Copy Files
COPY gradlew .
COPY gradle.properties .
COPY settings.gradle .
COPY LICENSE .
COPY README.md .
RUN ls /Processor_specifications_collector/app/snapshots/Intel/processor_family_urls
# Install Chromium (for web scraping)
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" > /etc/apk/repositories
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories
RUN apk update && apk add firefox
RUN ls -ls /usr/lib
RUN ls -ls /usr/bin
RUN ls -ls /usr/lib/firefox
RUN chmod -R 777 /Processor_specifications_collector
# Shell as entrypoint
ENTRYPOINT [ "/bin/sh" ]
# Gradle run as command on execution
CMD [ "./gradlew", "run"]