Sonny4Sonnix's picture
Update Dockerfile
0cc251d
raw
history blame
738 Bytes
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Install any dependencies your application may have
RUN pip install fastapi transformers uvicorn
# Download the resource during Docker build
RUN transformers-cli repo clone Sonny4Sonnix/twitter-roberta-base-sentimental-analysis-of-covid-tweets
# Copy the current directory contents into the container at /app
COPY . /app
# Expose the port that the FastAPI application will run on
EXPOSE 7860
# Command to run the FastAPI application when the container starts
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]