chenhaiyang il y a 4 ans
Parent
commit
27ca47cbed
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. 12 0
      Dockerfile

+ 12 - 0
Dockerfile

@@ -0,0 +1,12 @@
+FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
+
+COPY requirements.txt .
+RUN pip install -r requirements.txt
+
+EXPOSE 80
+
+COPY .env /app/.env
+
+COPY ./app /app/app
+
+CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]