New_space_test / Dockerfile
asritha22bce's picture
Create Dockerfile
82ccfe2 verified
raw
history blame contribute delete
413 Bytes
# Use an official Python image
FROM python:3.10
# Set the working directory
WORKDIR /home/user/app
# Copy and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install the spaCy model inside the Docker container
RUN python -m spacy download en_core_web_sm
# Copy the rest of your application
COPY . .
# Set the command to run your app
CMD ["python", "app.py"]