ai / Dockerfile
hadadrjt's picture
ai: Initial.
9a7a261
raw
history blame
593 Bytes
#
# SPDX-FileCopyrightText: Hadad <[email protected]>
# 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
COPY webui.db /app/backend/data/
# Set the database file to read-only
# to prevent unauthorized changes and improve security
RUN chmod 555 /app/backend/data/webui.db
# Open the port so the application can be accessed
EXPOSE 7860
# Start the application using the startup script
CMD ["bash", "start.sh"]