-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/17-fuzzywuzzy' of https://github.com/CAUSOLDOUTMEN…
…/Diareat_OCR into feat/17-fuzzywuzzy
- Loading branch information
Showing
7 changed files
with
32 additions
and
30 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.gitignore | ||
README.md | ||
README.md |
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 |
---|---|---|
|
@@ -3,8 +3,6 @@ name: Diareat OCR CI/CD | |
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
|
||
|
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 |
---|---|---|
|
@@ -3,6 +3,5 @@ | |
*.pyc | ||
*.jpg | ||
*.env | ||
boto.conf.dev | ||
*.jpeg | ||
*.png |
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 |
---|---|---|
@@ -1,14 +1,28 @@ | ||
FROM python:3.11.3-slim-buster | ||
FROM amd64/ubuntu:22.04 | ||
|
||
WORKDIR /app | ||
|
||
ENV PYTHONUNBUFFERED=1 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
COPY Pipfile Pipfile.lock /app/ | ||
|
||
RUN pip install pipenv && \ | ||
pipenv install --deploy --ignore-pipfile | ||
COPY Pipfile Pipfile.lock /app/ | ||
RUN apt -y update && apt -y upgrade | ||
RUN apt install -y pip && pip install pipenv | ||
RUN apt install software-properties-common -y | ||
RUN add-apt-repository ppa:deadsnakes/ppa && apt -y update | ||
RUN apt-get install -y fonts-noto-cjk | ||
RUN apt install -y python3.11 | ||
RUN pipenv --python /usr/bin/python3 | ||
RUN pipenv install | ||
|
||
COPY . /app/ | ||
|
||
CMD ["pipenv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | ||
RUN pipenv run pip install cmake | ||
RUN pipenv run pip install easyocr | ||
|
||
EXPOSE 8000 | ||
|
||
|
||
CMD ["pipenv", "run","uvicorn", "main:app", "--host","0.0.0.0","--port","8000"] | ||
|
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
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