Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker file modified in middleware #12

Open
darkb0ts opened this issue Mar 4, 2024 · 0 comments
Open

docker file modified in middleware #12

darkb0ts opened this issue Mar 4, 2024 · 0 comments

Comments

@darkb0ts
Copy link

darkb0ts commented Mar 4, 2024

# 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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant