diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..48f8ebd --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +ext/arabic_rom/data diff --git a/.gitignore b/.gitignore index 78ddda3..2555d35 100644 --- a/.gitignore +++ b/.gitignore @@ -133,3 +133,8 @@ tags.temp # Legacy Visual Basic files, not compatible with license. *.bas + + +# Local +ext/arabic_rom/data +!.keep diff --git a/Dockerfile b/Dockerfile index 879e83a..25e667b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,12 @@ -FROM python:3.9-alpine3.15 +FROM python:3.10-slim-bullseye -RUN apk add --no-cache -t buildtools build-base -RUN apk add --no-cache linux-headers +RUN apt update +RUN apt install -y build-essential tzdata gfortran libopenblas-dev libboost-all-dev + +ENV TZ=America/New_York + +# Copy and compile Kakadu codec. +WORKDIR ${_workroot} ENV _workroot "/usr/local/scriptshifter/src" @@ -15,11 +20,15 @@ COPY ext ./ext/ COPY scriptshifter ./scriptshifter/ RUN chmod +x ./entrypoint.sh -RUN addgroup -S www && adduser -S www -G www + +RUN addgroup --system www +RUN adduser --system www +RUN gpasswd -a www www RUN chown -R www:www ${_workroot} . # Remove development packages. -RUN apk del buildtools +RUN apt remove -y build-essential +RUN apt autoremove -y EXPOSE 8000 diff --git a/ext/.gitignore b/ext/.gitignore new file mode 100644 index 0000000..153735d --- /dev/null +++ b/ext/.gitignore @@ -0,0 +1 @@ +arabic_rom/data diff --git a/requirements.txt b/requirements.txt index 7296110..307d503 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,9 @@ -aksharamukha>=2.1,<2.2 -camel-tools>=1.1.0 -flask>=2.3,<2.4 -funcy==1.15 -pymarc>=4.0.0 +aksharamukha>=2.1,<3 +camel-tools>=1.5 +flask>=2.3,<3 +#funcy>=1.15,<2 +#pymarc>=4.0,<5 python-dotenv>=1.0,<2 pyyaml>=6.0,<7 -repackage>=0.7.3 +#repackage>=0.7.3 uwsgi>=2.0,<2.1