Skip to content

Commit 3158296

Browse files
authored
Merge pull request #1132 from tassa-yoniso-manasi-karoto/fix-dockerfile
Fix Docker build failure, add docker compose file for convenience
2 parents a069230 + c712031 commit 3158296

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
FROM python:3.12
66

7+
WORKDIR /app
8+
79
COPY . .
810

911
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/*

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
services:
2+
pythainlp:
3+
build: .
4+
image: pythainlp:latest
5+
volumes:
6+
- .:/workspace
7+
working_dir: /workspace
8+
stdin_open: true
9+
tty: true
10+
environment:
11+
- PYTHAINLP_DATA_DIR=/workspace/pythainlp-data

0 commit comments

Comments
 (0)