Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -4,8 +4,8 @@ FROM python:3.10-slim
|
|
| 4 |
# Set working directory in container
|
| 5 |
WORKDIR /app/src
|
| 6 |
|
| 7 |
-
# Copy
|
| 8 |
-
COPY src/requirements.txt .
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
@@ -25,7 +25,8 @@ streamlit run app.py' > ./start.sh
|
|
| 25 |
# Make the script executable
|
| 26 |
RUN chmod +x ./start.sh
|
| 27 |
|
| 28 |
-
# Copy .env file and set environment variables
|
|
|
|
| 29 |
ENV $(cat .env | xargs)
|
| 30 |
|
| 31 |
# Run the start script
|
|
|
|
| 4 |
# Set working directory in container
|
| 5 |
WORKDIR /app/src
|
| 6 |
|
| 7 |
+
# Copy the `src` directory into the container
|
| 8 |
+
COPY src/requirements.txt ./requirements.txt
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 25 |
# Make the script executable
|
| 26 |
RUN chmod +x ./start.sh
|
| 27 |
|
| 28 |
+
# Copy `.env` file and set environment variables
|
| 29 |
+
COPY src/.env .env
|
| 30 |
ENV $(cat .env | xargs)
|
| 31 |
|
| 32 |
# Run the start script
|