fix: Try installing within venv.
Browse files- .dockerignore +1 -0
- 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
|
|
|
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"]
|