Spaces:
Running
Commit
•
084a5f0
1
Parent(s):
f028895
fix: Docker networking issues
Browse files- 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 |
-
|
7 |
-
RUN
|
8 |
-
|
9 |
-
|
|
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
|