mlAPI / Dockerfile
deepak6593's picture
adding files
2cfbf68
raw
history blame
598 Bytes
# Use the official Python image
FROM python:3.9
# Set the working directory in the container
WORKDIR /code
# Create a directory for the SQLite database file
RUN mkdir /data && chmod 777 /data
# Copy the requirements file into the container at /code
COPY ./requirements.txt /code/
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the rest of the application code into the container at /code
COPY . /code/
# Command to run on container start
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8123"]