Spaces:
Sleeping
Sleeping
Commit
·
6499cf5
1
Parent(s):
ff372a6
Update Dockerfile
Browse files- Dockerfile +15 -7
Dockerfile
CHANGED
@@ -1,11 +1,19 @@
|
|
1 |
-
# Use
|
2 |
-
FROM
|
3 |
|
4 |
-
#
|
5 |
-
|
6 |
|
7 |
-
#
|
8 |
-
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# Set the entrypoint script as the default entrypoint for the container
|
11 |
-
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the base image with necessary dependencies
|
2 |
+
FROM circulartextapp/spaceread
|
3 |
|
4 |
+
# Set the working directory to /app
|
5 |
+
WORKDIR /app
|
6 |
|
7 |
+
# Copy the current directory contents into the container at /app
|
8 |
+
COPY . /app
|
9 |
+
|
10 |
+
# Set the entrypoint script as executable
|
11 |
+
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
12 |
+
RUN chmod +x /usr/local/bin/entrypoint.sh
|
13 |
|
14 |
# Set the entrypoint script as the default entrypoint for the container
|
15 |
+
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
16 |
+
|
17 |
+
# Default command to run if the user doesn't provide a command
|
18 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
|
19 |
+
|