diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..9e4b3b9 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,14 @@ +FROM debian + +RUN apt update && apt install -y \ +libblas-dev liblapack-dev \ +libffi-dev libnacl-dev \ +python3 python3-pip python3-dev + +COPY ./requirements.txt ./requirements.txt +RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -r ./requirements.txt + +RUN python3 -m nltk.downloader words + +WORKDIR /usr/app +CMD [ "python", "./src/main.py" ] diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..82da998 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,35 @@ +{ + "name": "Kwaylon", + "build": { + "dockerfile": "./Dockerfile", + "context": "../" + }, + "mounts": [ + "source=/etc/localtime,target=/etc/localtime,type=bind,consistency=cached", + "source=/etc/timezone,target=/etc/timezone,type=bind,consistency=cached" + ], + "features": { + "ghcr.io/devcontainers/features/git:1": {}, + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/devcontainers/features/python:1": {} + }, + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "ms-toolsai.jupyter", + "mhutchie.git-graph", + "ms-python.isort", + "ms-python.autopep8" + ], + "settings": { + // "python.editor.defaultFormatter": "ms-python.autopep8", + "[python]": { + "editor.defaultFormatter": "ms-python.autopep8", + "formatting.autopep8Args": ["--max-line-length", "120", "--experimental"], + "editor.formatOnSave": true + } + } + } + } +} \ No newline at end of file