-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (24 loc) · 788 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (24 loc) · 788 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
# leverage the renci python base image
FROM renciorg/renci-python-image:v0.0.1
#Build from this branch. Assume main for this repo
ARG BRANCH_NAME=main
# update the container
RUN apt-get update
# make a directory for the repo
RUN mkdir /repo
# go to the directory where we are going to upload the repo
WORKDIR /repo
# get the latest code
RUN git clone --branch $BRANCH_NAME --single-branch https://github.com/jrichardson97/kg-summarizer.git
# go to the repo dir
WORKDIR /repo/kg-summarizer
RUN chmod 777 -R .
# install all required packages
RUN pip install -r requirements.txt
RUN pip install uvicorn
# switch to the non-root user (nru). defined in the base image
USER nru
# expose the default port
EXPOSE 6380
# start the service entry point
ENTRYPOINT ["python", "main.py"]