diff --git a/DOckerfile_copy b/DOckerfile_copy new file mode 100644 index 0000000000000000000000000000000000000000..bb606a0c2692eb39efb03730034a0e0670de47da --- /dev/null +++ b/DOckerfile_copy @@ -0,0 +1,22 @@ +FROM alpine:3.10 + +COPY . sapis + +WORKDIR "/sapis" + +RUN apk --no-cache update && apk --no-cache add python3 cython3 py-numpy openjdk11 && pip3 install --no-cache-dir --disable-pip-version-check -r REQUIREMENTS.txt + +EXPOSE 4567 + +RUN ls -l /usr/lib/jvm/ + +RUN ls -l /usr/lib/jvm/default-jvm/ + +RUN java -version + +CMD ["./start.sh"] + + + + + diff --git a/Dockerfile b/Dockerfile index c8e4d6e9f08648d1eb35fd4e865fcd96ce16593b..701479b76ffaaee0ac7207b80df34b38b771ad3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ FROM nginx:alpine COPY index.html /usr/share/nginx/html -EXPOSE 4567 +EXPOSE 7654 diff --git a/__pycache__/pipeline.cpython-35.pyc b/__pycache__/pipeline.cpython-35.pyc index 938124205a1f336e40179634c55ba62a7139f5a0..c28801862c39aea3959db702abd524577be113d1 100644 Binary files a/__pycache__/pipeline.cpython-35.pyc and b/__pycache__/pipeline.cpython-35.pyc differ diff --git a/start.sh b/start.sh index bc4d9c3b564c15bbad1350f12098de005a7abe04..5a9472f8c63d80c0b853ebb8be4d413d710bb0b9 100755 --- a/start.sh +++ b/start.sh @@ -1,3 +1,4 @@ #!/bin/sh java -cp java/maltparser-1.9.0/maltparser-1.9.0.jar:java/py4j0.10.8.1.jar java/MaltGateway.java java/swemalt-1.7.2 && -gunicorn api:api -b 80:4567 --log-level=debug +gunicorn api:api -b :4567 --log-level=debug + diff --git a/stilett/__pycache__/apply_rules.cpython-35.pyc b/stilett/__pycache__/apply_rules.cpython-35.pyc index af4c44ee5030ba5b58d9111b9c43e65bca5c5e30..c71def330e6ec09ff089092f0eeb0911eea8dd28 100644 Binary files a/stilett/__pycache__/apply_rules.cpython-35.pyc and b/stilett/__pycache__/apply_rules.cpython-35.pyc differ