Skip to content
Open

Test #299

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .debug.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TXL_LOGLEVEL=DEBUG
TXL_APP_MODE=development
REMOTE_PDB_HOST=0.0.0.0
REMOTE_PDB_PORT=4444
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
ext/arabic_rom/data
.venv
data
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ tags.temp


# Local
ext/arabic_rom/data
/ext/arabic_rom/data
scriptshifter/data/*.db
!.keep
VERSION
.~lock.*
/data
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
FROM lcnetdev/scriptshifter-base:latest
ARG WORKROOT "/usr/local/scriptshifter/src"
ENV WORKROOT="/usr/local/scriptshifter/src"

# Copy core application files.
WORKDIR ${WORKROOT}
COPY VERSION entrypoint.sh sscli uwsgi.ini wsgi.py ./
COPY scriptshifter ./scriptshifter/
COPY test ./test/
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

ENV HF_DATASETS_CACHE /data/hf/datasets
#ENV HF_DATASETS_CACHE="/data/hf/datasets"
RUN ./sscli admin init-db

RUN chmod +x ./entrypoint.sh
#RUN chown -R www:www ${WORKROOT} .

EXPOSE 8000

# For debugging WSGI sessions.
#RUN pip install --break-system-packages remote-pdb
#ENV PYTHONBREAKPOINT=remote_pdb.set_trace

ENTRYPOINT ["./entrypoint.sh"]
5 changes: 0 additions & 5 deletions deps.txt

This file was deleted.

2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ else
fi

# Preload Thai model.
python -c 'from esupar import load; load("th")'
#python -c 'from esupar import load; load("th")'

host=${TXL_WEBAPP_HOST:-"0.0.0.0"}
port=${TXL_WEBAPP_PORT:-"8000"}
Expand Down
Loading
Loading