forked from RecandChat/CodeCompass
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 677 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (18 loc) · 677 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
# start by pulling the python image
FROM python:3.11-slim
# Install build dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends gcc g++ python3-dev libffi-dev && \
rm -rf /var/lib/apt/lists/*
# copy the requirements file into the image
COPY ./requirements.txt /app/requirements.txt
# switch working directory
WORKDIR /app
# install the dependencies and packages in the requirements file
RUN pip install -r requirements.txt
# copy every content from the local file to the image
COPY . /app
# configure the container to run in an executed manner
ENTRYPOINT [ "python" ]
# run the recommender
CMD ["python", "frontend/recommender/app.py"]