Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -4,6 +4,9 @@ FROM tensorflow/tensorflow:2.15.0
|
|
| 4 |
# Set the working directory in the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
# Copy the requirements file into the container
|
| 8 |
COPY requirements.txt .
|
| 9 |
|
|
@@ -13,7 +16,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 13 |
# Copy the backend and frontend code into the container
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
-
#
|
| 17 |
RUN npm install --prefix frontend
|
| 18 |
RUN npm run build --prefix frontend
|
| 19 |
|
|
|
|
| 4 |
# Set the working directory in the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Install Node.js and npm
|
| 8 |
+
RUN apt-get update && apt-get install -y nodejs npm
|
| 9 |
+
|
| 10 |
# Copy the requirements file into the container
|
| 11 |
COPY requirements.txt .
|
| 12 |
|
|
|
|
| 16 |
# Copy the backend and frontend code into the container
|
| 17 |
COPY . .
|
| 18 |
|
| 19 |
+
# Install dependencies and build the React frontend
|
| 20 |
RUN npm install --prefix frontend
|
| 21 |
RUN npm run build --prefix frontend
|
| 22 |
|