-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (22 loc) · 873 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Use Python37
FROM python:3.7
## Step 1:
# Create a working directory
WORKDIR /app
## Step 2:
# Copy source code to working directory
COPY app.py settings.py models.py requirements.txt vars.env Procfile runtime.txt /app/
COPY templates /app/templates/
COPY static /app/static/
COPY uploads /app/uploads/
COPY models_onnx/LUNG_CANCER/lung_cancer_model_opset13.onnx /app/models_onnx/LUNG_CANCER/lung_cancer_model_opset13.onnx
COPY models_onnx/COVID19/covid_classifier_model_opset13.onnx /app/models_onnx/COVID19/covid_classifier_model_opset13.onnx
COPY models_onnx/PNEUMONIA/cnn_segmentation_pneumonia_opset13.onnx /app/models_onnx/PNEUMONIA/cnn_segmentation_pneumonia_opset13.onnx
## Step 3:
# Install packages from requirements.txt
RUN pip install -r requirements.txt
## Step 4:
# Expose port 8080
EXPOSE 8080
# Run app.py at container launch
CMD ["python", "app.py"]