diff --git a/Dockerfile b/Dockerfile index 21a70317c..0337105d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,8 @@ FROM python:3.12 +WORKDIR /app + COPY . . RUN apt-get update && apt-get install -y --no-install-recommends build-essential libicu-dev python3-pip python3-venv pkg-config && rm -rf /var/lib/apt/lists/* diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..200512fa5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +services: + pythainlp: + build: . + image: pythainlp:latest + volumes: + - .:/workspace + working_dir: /workspace + stdin_open: true + tty: true + environment: + - PYTHAINLP_DATA_DIR=/workspace/pythainlp-data