Spaces:
Sleeping
Sleeping
Commit
·
6e21807
1
Parent(s):
797ba9c
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -4,12 +4,11 @@ FROM circulartextapp/readspaceout
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Copy the
|
8 |
-
COPY
|
9 |
-
COPY ./your_code_directory /app/your_code_directory
|
10 |
|
11 |
# Expose the port that your FastAPI application is running on
|
12 |
EXPOSE 80
|
13 |
|
14 |
# Command to start your FastAPI application
|
15 |
-
CMD ["uvicorn", "
|
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Copy all contents in the current directory to the /app directory in the container
|
8 |
+
COPY . /app
|
|
|
9 |
|
10 |
# Expose the port that your FastAPI application is running on
|
11 |
EXPOSE 80
|
12 |
|
13 |
# Command to start your FastAPI application
|
14 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80", "--reload"]
|