docker file modified in middleware
darkb0ts opened this issue · 0 comments
darkb0ts commented
# Use the official Python image with version 3.7
FROM python:3.7
# Set the working directory inside the container
WORKDIR /app/middleware
# Copy the requirements file into the container
COPY requirements.txt /app/middleware/
# Install the Python dependencies
RUN pip install -r requirements.txt
RUN python -m spacy download en_core_web_sm
RUN python -m nltk.downloader stopwords
RUN python -m nltk.downloader punkt
RUN python -m nltk.downloader averaged_perceptron_tagger
RUN python -m nltk.downloader universal_tagset
RUN python -m nltk.downloader wordnet
RUN python -m nltk.downloader brown
RUN python -m nltk.downloader maxent_ne_chunker
RUN pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz
# Set an environment variable
ENV NAME=venv
# Expose the port the app runs on
EXPOSE 5002
# Run the command to start the application
CMD ["python", "app.py"]