File size: 722 Bytes
9a7a261
 
 
 
 
 
 
 
 
 
 
 
e42a772
 
 
5120e77
 
 
 
9a7a261
 
47d9885
9a7a261
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
# SPDX-License-Identifier: MIT
#

# Use a specific container image for the application
FROM hadadrjt/ai:latest

# Set the main working directory inside the container
WORKDIR /app/backend

# Copy the database file into the container
# This database is a placeholder or dummy,
# and the core configuration is located in the Environment
# and Secret Environment settings of Hugging Face Spaces.
COPY --chown=$UID:$GID src/database/webui.db /app/backend/data/

# Set the database permission
RUN chmod 777 /app/backend/data/webui.db

# Open the port so the application can be accessed
EXPOSE 8000

# Start the application using the startup script
CMD ["bash", "start.sh"]