Update Dockerfile
Browse files- Dockerfile +8 -6
Dockerfile
CHANGED
@@ -27,11 +27,13 @@ COPY ./requirements.txt /code/requirements.txt
|
|
27 |
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
28 |
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
29 |
|
30 |
-
COPY . .
|
31 |
|
32 |
-
|
33 |
|
34 |
-
|
35 |
-
RUN
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
27 |
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
28 |
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
29 |
|
|
|
30 |
|
31 |
+
WORKDIR /app
|
32 |
|
33 |
+
COPY --chown=user ./requirements.txt requirements.txt
|
34 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
35 |
+
|
36 |
+
COPY --chown=user . /app
|
37 |
+
EXPOSE 8000
|
38 |
+
|
39 |
+
CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
|