paulbricman commited on
Commit
084a5f0
1 Parent(s): f028895

fix: Docker networking issues

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,9 +1,11 @@
1
  FROM ubuntu
 
 
2
  RUN apt update
3
  RUN apt install -y git python3 python3-pip
4
- RUN cd ~ && git clone https://github.com/paulbricman/conceptarium
5
  RUN apt install -y libsasl2-dev python-dev libldap2-dev libssl-dev
6
- RUN python3 -m pip install pyOpenSSL uvicorn[standard]
7
- RUN cd ~/conceptarium && python3 -m pip install -r requirements.txt
8
- CMD cd ~/conceptarium; python3 -m uvicorn --host 0.0.0.0 main:app
9
- EXPOSE 8000
 
1
  FROM ubuntu
2
+ EXPOSE 8000
3
+ WORKDIR /app
4
  RUN apt update
5
  RUN apt install -y git python3 python3-pip
 
6
  RUN apt install -y libsasl2-dev python-dev libldap2-dev libssl-dev
7
+ COPY requirements.txt ./requirements.txt
8
+ RUN pip3 install pyOpenSSL uvicorn[standard]
9
+ RUN pip3 install -r requirements.txt
10
+ COPY . .
11
+ CMD python3 -m uvicorn --host 0.0.0.0 main:app