Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -8,7 +8,8 @@ ENV HOME=/home/user \
|
|
8 |
WORKDIR /home/user/app
|
9 |
# --cp w/ explicit user permissions 鉁嶐煆金煄渽馃馃徏
|
10 |
COPY --chown=user:user requirements.txt .
|
11 |
-
RUN pip install --no-cache-dir
|
|
|
12 |
COPY --chown=user:user . .
|
13 |
ENV CHAINLIT_HOME=/home/user/.chainlit \
|
14 |
XDG_CACHE_HOME=/home/user/.cache
|
@@ -16,7 +17,7 @@ RUN mkdir -p $CHAINLIT_HOME $XDG_CACHE_HOME
|
|
16 |
#CMD rm -f /home/user/.local/lib/python3.10/site-packages/chainlit/config.py && \
|
17 |
#chainlit run app.py -h 0.0.0.0 -p 7860
|
18 |
#CMD chainlit init
|
19 |
-
|
20 |
CMD chainlit run --host 0.0.0.0 --port 7860 app.py
|
21 |
|
22 |
# -w, --watch: Reload the app when the module changes. When this option is specified, the file watcher will be started and any changes to files will cause the server to reload the app, allowing faster iterations.
|
|
|
8 |
WORKDIR /home/user/app
|
9 |
# --cp w/ explicit user permissions 鉁嶐煆金煄渽馃馃徏
|
10 |
COPY --chown=user:user requirements.txt .
|
11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
+
# --upgrade
|
13 |
COPY --chown=user:user . .
|
14 |
ENV CHAINLIT_HOME=/home/user/.chainlit \
|
15 |
XDG_CACHE_HOME=/home/user/.cache
|
|
|
17 |
#CMD rm -f /home/user/.local/lib/python3.10/site-packages/chainlit/config.py && \
|
18 |
#chainlit run app.py -h 0.0.0.0 -p 7860
|
19 |
#CMD chainlit init
|
20 |
+
# --initializes a Chainlit project by creating a configuration file located at
|
21 |
CMD chainlit run --host 0.0.0.0 --port 7860 app.py
|
22 |
|
23 |
# -w, --watch: Reload the app when the module changes. When this option is specified, the file watcher will be started and any changes to files will cause the server to reload the app, allowing faster iterations.
|