-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (25 loc) · 858 Bytes
/
Dockerfile
File metadata and controls
36 lines (25 loc) · 858 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 python:3.10
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils \
build-essential \
git \
nano \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
RUN git config --global user.email nguyenminh180798@gmail.com
RUN git config --global pull.ff true
WORKDIR /
RUN mkdir -p /app
# &&\ mkdir -p /app/MetaGPT
COPY . /app
# COPY ./MetaGPT/ /app
WORKDIR /app/MetaGPT/
RUN pip install --no-cache-dir -r requirements.txt &&\
pip install -e .
WORKDIR /app/fastapi_metagpt_integration
# install torch for GPU version
# RUN pip install -r requirements.txt -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
RUN pip install -r requirements.txt
# CMD ["uvicorn", "--host", "0.0.0.0", "--port", "5000", "sco.main:app"]
CMD ["python", "-m", "fastapi_metagpt_integration.main"]