Compare commits
2 Commits
cdf994fd54
...
main
Author | SHA1 | Date | |
---|---|---|---|
32c43c13ce
|
|||
8b7830bddc
|
@@ -16,6 +16,6 @@ RUN rm -rf \
|
|||||||
/var/lib/{apt,dpkg} \
|
/var/lib/{apt,dpkg} \
|
||||||
/var/{cache,log,spool} \
|
/var/{cache,log,spool} \
|
||||||
/var/www/html/{.git,.build,README.md,env.example,docker-compose.yml,.gitignore}
|
/var/www/html/{.git,.build,README.md,env.example,docker-compose.yml,.gitignore}
|
||||||
RUN mkdir -p logs
|
RUN mkdir -p uploads && chmod 777 -R uploads/
|
||||||
|
|
||||||
CMD python3 -m http.server --cgi 8000 --directory public
|
CMD python3 -m http.server --cgi 8000 --directory public
|
||||||
|
@@ -4,4 +4,4 @@ services:
|
|||||||
context: ..
|
context: ..
|
||||||
dockerfile: .build/Dockerfile
|
dockerfile: .build/Dockerfile
|
||||||
hostname: reciptocr
|
hostname: reciptocr
|
||||||
image: reciptocr
|
image: git.shihaam.dev/shihaam/recipt-ocr-api
|
||||||
|
@@ -2,6 +2,6 @@ services:
|
|||||||
#########################
|
#########################
|
||||||
reciptocr:
|
reciptocr:
|
||||||
hostname: reciptocr
|
hostname: reciptocr
|
||||||
image: reciptocr
|
image: git.shihaam.dev/shihaam/recipt-ocr-api
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
|
@@ -49,7 +49,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Upload Recipt</h1>
|
<h1>Upload Recipt</h1>
|
||||||
<form action="/cgi-bin/api.cgi" method="post" enctype="multipart/form-data">
|
<form action="/reciptocr/api.cgi" method="post" enctype="multipart/form-data">
|
||||||
<label for="file">Select an image (PNG or JPEG):</label>
|
<label for="file">Select an image (PNG or JPEG):</label>
|
||||||
<input type="file" name="file" id="file" accept=".png, .jpeg, .jpg">
|
<input type="file" name="file" id="file" accept=".png, .jpeg, .jpg">
|
||||||
<input type="submit" value="Upload">
|
<input type="submit" value="Upload">
|
||||||
|
0
uploads/.gitkeep
Normal file
0
uploads/.gitkeep
Normal file
Reference in New Issue
Block a user