abhishekrs4 commited on
Commit
78bf1f9
1 Parent(s): 650d7bf

added dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.8.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # install linux package dependencies
6
+
7
+
8
+ # can copy files only from current working directory where docker builds
9
+ # cannot copy files from arbitrary directories
10
+
11
+ COPY ./resnet_50_deeplab_v3+/oil_spill_seg_resnet_50_deeplab_v3+_80.pt /data/models/oil_spill_seg_resnet_50_deeplab_v3+_80.pt
12
+ COPY ./sample_image_for_inference/img_0814.jpg /data/images/img_0814.jpg
13
+ COPY ./requirements.txt .
14
+
15
+ RUN pip install -r requirements.txt
16
+
17
+ COPY ./training/__init__.py ./training/
18
+ COPY ./training/dataset.py ./training/
19
+ COPY ./training/encoder_models.py ./training/
20
+ COPY ./training/decoder_models.py ./training/
21
+ COPY ./training/image_preprocessing.py ./training/
22
+ COPY ./training/logger_utils.py ./training/
23
+ COPY ./training/metrics.py ./training/
24
+ COPY ./training/seg_models.py ./training/
25
+ COPY ./training/image_stats.json ./training/
26
+ COPY ./app.py .
27
+
28
+ EXPOSE 7860
29
+
30
+ CMD ["streamlit", "run", "app.py", "--server.port=7860"]