MartinT commited on
Commit
281e6e5
1 Parent(s): 137b241

fix: Try installing within venv.

Browse files
Files changed (2) hide show
  1. .dockerignore +1 -0
  2. Dockerfile +4 -4
.dockerignore ADDED
@@ -0,0 +1 @@
 
 
1
+ venv
Dockerfile CHANGED
@@ -9,13 +9,13 @@ USER user
9
  ENV HOME=/home/user
10
  ENV PATH=/home/user/.local/bin:$PATH
11
 
12
- WORKDIR $HOME/app
13
-
14
  COPY --chown=user . $HOME/app
 
15
 
16
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
17
 
18
  ENV H2O_WAVE_LISTEN=":7860"
19
  ENV H2O_WAVE_ADDRESS="http://127.0.0.1:7860"
20
 
21
- CMD ["wave", "run", "examples.tour", "--no-reload"]
 
9
  ENV HOME=/home/user
10
  ENV PATH=/home/user/.local/bin:$PATH
11
 
 
 
12
  COPY --chown=user . $HOME/app
13
+ WORKDIR $HOME/app
14
 
15
+ RUN python -m venv venv
16
+ RUN ./venv/bin/pip install --no-cache-dir --upgrade -r requirements.txt
17
 
18
  ENV H2O_WAVE_LISTEN=":7860"
19
  ENV H2O_WAVE_ADDRESS="http://127.0.0.1:7860"
20
 
21
+ CMD ["./venv/bin/wave", "run", "examples.tour", "--no-reload"]