Synced repo using 'sync_with_huggingface' Github Action
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
@@ -82,6 +82,13 @@ WORKDIR $HOME/app
|
|
82 |
|
83 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
84 |
COPY --chown=user . $HOME/app
|
|
|
|
|
|
|
|
|
|
|
85 |
|
|
|
|
|
86 |
|
87 |
CMD ["poetry", "run", "streamlit", "run", "src/app.py", "--server.port", "7860"]
|
|
|
82 |
|
83 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
84 |
COPY --chown=user . $HOME/app
|
85 |
+
## install Poetry
|
86 |
+
RUN curl -sSL https://install.python-poetry.org | python3 -
|
87 |
+
ENV PATH $PATH:/root/.local/bin
|
88 |
+
RUN poetry config virtualenvs.create true \
|
89 |
+
&& poetry config virtualenvs.in-project false
|
90 |
|
91 |
+
RUN poetry install --no-dev
|
92 |
+
RUN poetry install
|
93 |
|
94 |
CMD ["poetry", "run", "streamlit", "run", "src/app.py", "--server.port", "7860"]
|