-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 702 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 702 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
# For SpringBoot
# Start with a base image containing Java runtime
FROM openjdk:11-jre
# Add Author information
LABEL maintainer="subinb@sfu.ca"
# Make port 8080 available
EXPOSE 8080
# The application's jar file
ADD web web/
RUN chmod -R 777 /web
ARG JAR_FILE=/web/web-0.0.1-SNAPSHOT.jar
# Add the application's jar to the container
ADD ${JAR_FILE} cmpt383-project.jar
# Add the directory for tensorflow
ADD tensor tensor/
RUN chmod -R 777 /tensor
# Run the jar file
ENTRYPOINT ["java","-jar","/cmpt383-project.jar"]
# For Python
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev
RUN pip3 install --upgrade pip
# For Tensorflow (takes long time)
RUN pip3 install tensorflow