generated from greek-learner-texts/text-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a dockerfile so this isn't so annoying to build from scratch (#19)
- Loading branch information
1 parent
064f4e2
commit 657371a
Showing
5 changed files
with
34 additions
and
10 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,20 @@ | ||
FROM python:3.8-slim | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY requirements.txt ./ | ||
|
||
RUN pip install --no-cache-dir --upgrade pip \ | ||
&& pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
|
||
RUN ["python", "scripts/normalize.py"] | ||
|
||
RUN ["python", "scripts/validate.py", ">", "test_results.txt"] | ||
|
||
RUN ["python", "build-html.py"] | ||
|
||
WORKDIR /usr/src/app/docs | ||
|
||
CMD ["python", "-m", "http.server"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
text_validator | ||
pathlib | ||
greek-normalisation | ||
markdown |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from text_validator.main import validate | ||
|
||
validate("C:/Users/Sarah McCuan/Documents/projects/ChambersGreekWar/text-validator.toml", ["C:/Users/Sarah McCuan/Documents/projects/ChambersGreekWar/text/01.txt"]) | ||
validate("text-validator.toml", ["text/chambers_w_headers.txt"]) |