Skip to content

Commit 20250e8

Browse files
Trying to use container Dev
1 parent 9213096 commit 20250e8

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto eol=lf
2+
*.{cmd,[cC][mM][dD]} text eol=crlf
3+
*.{bat,[bB][aA][tT]} text eol=crlf

Dockerfile.dev

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM python:3.9-slim
2+
3+
WORKDIR /home/myoxia
4+
5+
RUN apt update && apt install -y gcc tesseract-ocr tesseract-ocr-osd tesseract-ocr-fra
6+
7+
COPY pyproject.toml pyproject.toml
8+
COPY poetry.lock poetry.lock
9+
10+
RUN python -m pip install poetry
11+
RUN python -m poetry config virtualenvs.in-project true
12+
RUN python -m poetry install
13+
RUN .venv/bin/python -m spacy download fr_core_news_lg
14+
15+
ENV FLASK_ENV development
16+
ENV FLASK_APP myoxia.py
17+
18+
EXPOSE 5000
19+
ENTRYPOINT ["./dev_boot.sh"]

0 commit comments

Comments
 (0)