Commit
·
87ffbc7
1
Parent(s):
916d1d7
Install tensorflow through pip
Browse files- Dockerfile +4 -3
- environment.yml +0 -14
Dockerfile
CHANGED
|
@@ -14,12 +14,13 @@ ENV STREAMLIT_HOME=/tmp
|
|
| 14 |
ENV MPLCONFIGDIR=/tmp/mpl_cache
|
| 15 |
RUN mkdir -p /tmp/mpl_cache
|
| 16 |
|
| 17 |
-
COPY
|
| 18 |
COPY src/ ./src/
|
| 19 |
|
| 20 |
# Create environment and install dependencies
|
| 21 |
-
RUN conda
|
| 22 |
-
RUN conda run -n appenv
|
|
|
|
| 23 |
|
| 24 |
# Expose Streamlit port
|
| 25 |
EXPOSE 8501
|
|
|
|
| 14 |
ENV MPLCONFIGDIR=/tmp/mpl_cache
|
| 15 |
RUN mkdir -p /tmp/mpl_cache
|
| 16 |
|
| 17 |
+
COPY requirements.txt ./
|
| 18 |
COPY src/ ./src/
|
| 19 |
|
| 20 |
# Create environment and install dependencies
|
| 21 |
+
RUN conda create -n appenv python=3.12.9 -y
|
| 22 |
+
RUN conda run -n appenv conda install --file requirements.txt -y
|
| 23 |
+
RUN conda run -n appenv pip install tensorflow keras scikit-learn opencv-python-headless streamlit-webrtc matplotlib huggingface-hub twilio
|
| 24 |
|
| 25 |
# Expose Streamlit port
|
| 26 |
EXPOSE 8501
|
environment.yml
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
name: appenv
|
| 2 |
-
channels:
|
| 3 |
-
- defaults
|
| 4 |
-
- conda-forge
|
| 5 |
-
dependencies:
|
| 6 |
-
- python=3.12.9
|
| 7 |
-
- pip
|
| 8 |
-
- pip:
|
| 9 |
-
- tensorflow
|
| 10 |
-
- keras
|
| 11 |
-
- streamlit
|
| 12 |
-
- Pillow
|
| 13 |
-
- numpy
|
| 14 |
-
- python-dotenv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|