enricorampazzo commited on
Commit
80cfff2
·
1 Parent(s): 4225df7

fixed docker

Browse files
Files changed (2) hide show
  1. .dockerignore +4 -0
  2. Dockerfile +6 -3
.dockerignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ .venv
2
+ .venv2
3
+ cache
4
+ google
Dockerfile CHANGED
@@ -5,12 +5,15 @@ ENV env=hf
5
  RUN source venv/bin/activate
6
  RUN ls -a
7
  RUN mkdir app
8
- COPY . app
9
- WORKDIR app
 
 
10
  RUN rm deps/*.whl
11
  RUN pip install -r requirements-base.txt
 
12
  EXPOSE 8501
13
- CMD streamlit run dam_helper/app.py \
14
  --server.headless true \
15
  --server.enableCORS false \
16
  --server.enableXsrfProtection false \
 
5
  RUN source venv/bin/activate
6
  RUN ls -a
7
  RUN mkdir app
8
+ COPY requirements-base.txt /app
9
+ COPY dam_helper /app
10
+ COPY deps /app/deps
11
+ WORKDIR /app
12
  RUN rm deps/*.whl
13
  RUN pip install -r requirements-base.txt
14
+ WORKDIR /app/dam_helper
15
  EXPOSE 8501
16
+ CMD streamlit run app.py \
17
  --server.headless true \
18
  --server.enableCORS false \
19
  --server.enableXsrfProtection false \