-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
36 lines (25 loc) · 817 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.11
ENV PYTHONBUFFERED 1
ENV NO_PREFIX 1
RUN apt update
RUN apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev tree -y
RUN ln -s /usr/bin/python3.11 /usr/bin/python
RUN apt install python3-pip -y
RUN apt install python3-venv -y
RUN python -m pip install --upgrade pip
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install -U SQLAlchemy
RUN apt-get update && apt-get install -y \
software-properties-common \
npm
RUN npm install npm@latest -g && \
npm install n -g && \
n latest
COPY . .
WORKDIR /app/modules/tools
RUN npm install
WORKDIR /app
RUN python -c "import nltk; nltk.download('punkt')"
CMD [ "python", "-u", "-m" , "main", "--verbose"]