forked from aL0NEW0LF/twitter-sentiment-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsumer.Dockerfile
More file actions
23 lines (18 loc) · 764 Bytes
/
Copy pathconsumer.Dockerfile
File metadata and controls
23 lines (18 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:latest
WORKDIR /api
COPY ./api/modeling/saved-models /api/saved-models
COPY ./api/requirements.txt /api/requirements.txt
COPY ./api/consumer.py /api/consumer.py
RUN apt update
RUN apt install -y wget curl
RUN wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.deb
RUN apt install ./jdk-17_linux-x64_bin.deb
RUN rm jdk-17_linux-x64_bin.deb
ENV JAVA_HOME=/usr/lib/jvm/jdk-17-oracle-x64
RUN apt install -y software-properties-common build-essential nano
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt update
RUN apt install -y python3.10 python3.10-distutils python3-pip
RUN pip install --no-cache-dir -r requirements.txt --ignore-installed --break-system-packages
RUN python3 -m nltk.downloader stopwords
CMD python3 consumer.py