Spaces:
Sleeping
Sleeping
Commit
·
debef10
1
Parent(s):
fb030aa
Delete Dockerfiledontwork
Browse files- Dockerfiledontwork +0 -24
Dockerfiledontwork
DELETED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
# Use the circulartextapp/spaceread image as the base image
|
| 2 |
-
FROM circulartextapp/spaceread
|
| 3 |
-
|
| 4 |
-
# Create a new user for each space
|
| 5 |
-
RUN useradd -m -u 1000 user
|
| 6 |
-
|
| 7 |
-
# Switch to the new user
|
| 8 |
-
USER user
|
| 9 |
-
|
| 10 |
-
# Copy the current directory contents into the container at /app
|
| 11 |
-
COPY . /app
|
| 12 |
-
|
| 13 |
-
# Install dependencies
|
| 14 |
-
RUN pip install -r requirements.txt
|
| 15 |
-
|
| 16 |
-
# Set the entrypoint script as executable
|
| 17 |
-
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
| 18 |
-
RUN chmod +x /usr/local/bin/entrypoint.sh
|
| 19 |
-
|
| 20 |
-
# Define the entrypoint script to handle user creation and application startup
|
| 21 |
-
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
| 22 |
-
|
| 23 |
-
# Default command to run if the user doesn't provide a command
|
| 24 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|