Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -8,5 +8,8 @@ RUN pip install fastapi requests libretranslate uvicorn[standard]==0.17.*
|
|
8 |
|
9 |
COPY . .
|
10 |
COPY --chown=user . /app
|
11 |
-
#
|
12 |
-
|
|
|
|
|
|
|
|
8 |
|
9 |
COPY . .
|
10 |
COPY --chown=user . /app
|
11 |
+
# Expose the port FastAPI will use
|
12 |
+
EXPOSE 8000
|
13 |
+
|
14 |
+
# Command to run the FastAPI app with uvicorn
|
15 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|