circulartext commited on
Commit
6499cf5
·
1 Parent(s): ff372a6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -7
Dockerfile CHANGED
@@ -1,11 +1,19 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.11
3
 
4
- # Copy the entrypoint script into the container
5
- COPY entrypoint.sh /entrypoint.sh
6
 
7
- # Grant execute permissions to the entrypoint script
8
- RUN chmod +x /entrypoint.sh
 
 
 
 
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
+