VinBigData / Dockerfile
itzjunayed's picture
Create Dockerfile
7de112c verified
raw
history blame
543 Bytes
# Use the specific Python version as the base image
FROM python:3.7.6
# Set the working directory inside the container
WORKDIR /app
# Copy your application's requirements file to the container
COPY requirements.txt .
# Install the dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install detectron2 -f \
https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.7/index.html
# Copy the rest of your application code to the container
COPY . .
# Set the command to run your application
CMD ["python", "app.py"]