This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.flake8 | ||
*.gitignore | ||
*.dockerignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM python:3.12-alpine | ||
|
||
WORKDIR /app | ||
|
||
COPY ./requirements.txt /app | ||
RUN pip install -r requirements.txt | ||
|
||
COPY . /app | ||
|
||
# IF you wan run api then follow the steps. | ||
# 1. go and change the configurion under smart_manager.json >> settings >> api == true | ||
# 2. go and edit smart_manager.json >> settings >> api-server-config >> host == "0.0.0.0" | ||
# 3. uncomment the below code (to expose the port 8000) and then build the image | ||
# ``` | ||
# EXPOSE 8000 | ||
# ``` | ||
# 4. then run the image as container by typing the following command in your terminal | ||
# docker run -p 8000:8000 [image-name:tag] | ||
# Note: change the [image-name:tag] with actual value.s | ||
# 5. then go to your localhost:8000 for asseccing the api untill the container is running. | ||
|
||
CMD ["python", "SmartManager/main.py"] |