CEEMEESEEK / DOCKERFILE
acecalisto3's picture
Create DOCKERFILE
10e6340 verified
raw
history blame
631 Bytes
# Use the official Python image as a base
FROM python:3.9-slim
# Set the working directory to /app
WORKDIR /app
# Copy the requirements file into the working directory
COPY requirements.txt .
# Install the dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Install the spacy library and download the en_core_web_sm model
RUN pip install spacy
RUN python -m spacy download en_core_web_sm
# Copy the application code into the working directory
COPY . .
# Expose the port that the application will use
EXPOSE 8000
# Run the command to start the application when the container is launched
CMD ["python", "app.py"]