Update Dockerfile
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
|
@@ -20,15 +20,12 @@ COPY package*.json ./
|
|
| 20 |
# Install the Node.js dependencies
|
| 21 |
RUN npm install
|
| 22 |
|
| 23 |
-
# Copy the Flask application code to the working directory
|
| 24 |
-
COPY . .
|
| 25 |
-
|
| 26 |
-
# Copy the public directory (if exists)
|
| 27 |
-
COPY public /app/public
|
| 28 |
|
| 29 |
# Build the React application
|
| 30 |
RUN npm run build
|
| 31 |
-
RUN npm install reactflow
|
| 32 |
|
| 33 |
# Verify Node.js and npm installation
|
| 34 |
RUN node --version && npm --version
|
|
|
|
| 20 |
# Install the Node.js dependencies
|
| 21 |
RUN npm install
|
| 22 |
|
| 23 |
+
# Copy the Flask application code and public directory to the working directory
|
| 24 |
+
COPY app.py .
|
| 25 |
+
COPY public ./public
|
|
|
|
|
|
|
| 26 |
|
| 27 |
# Build the React application
|
| 28 |
RUN npm run build
|
|
|
|
| 29 |
|
| 30 |
# Verify Node.js and npm installation
|
| 31 |
RUN node --version && npm --version
|