Spaces:
Sleeping
Sleeping
circulartext
commited on
Commit
·
434bf77
1
Parent(s):
c379058
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
@@ -7,12 +7,16 @@ WORKDIR /app
|
|
7 |
# Copy all contents in the current directory to the /app directory in the container
|
8 |
COPY . /app
|
9 |
|
10 |
-
#
|
11 |
-
|
|
|
12 |
|
13 |
# Expose the port that your FastAPI application is running on
|
14 |
EXPOSE 80
|
15 |
|
|
|
|
|
|
|
16 |
# Command to start your FastAPI application
|
17 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80", "--reload"]
|
18 |
|
|
|
7 |
# Copy all contents in the current directory to the /app directory in the container
|
8 |
COPY . /app
|
9 |
|
10 |
+
# Copy the entrypoint script
|
11 |
+
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
12 |
+
RUN chmod +x /usr/local/bin/entrypoint.sh
|
13 |
|
14 |
# Expose the port that your FastAPI application is running on
|
15 |
EXPOSE 80
|
16 |
|
17 |
+
# Set the entrypoint script
|
18 |
+
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
19 |
+
|
20 |
# Command to start your FastAPI application
|
21 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80", "--reload"]
|
22 |
|