Spaces:
Runtime error
Runtime error
Commit
·
8adcdca
1
Parent(s):
0509f82
Sentiment Analysis
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use an official Node.js runtime as a parent image
|
2 |
-
FROM node:16
|
3 |
|
4 |
# Set the working directory
|
5 |
WORKDIR /app
|
@@ -16,7 +16,7 @@ RUN npm run build
|
|
16 |
|
17 |
# Use an Nginx image to serve the built app
|
18 |
FROM nginx:alpine
|
19 |
-
COPY --from=
|
20 |
|
21 |
# Expose the port Nginx runs on
|
22 |
EXPOSE 80
|
|
|
1 |
# Use an official Node.js runtime as a parent image
|
2 |
+
FROM node:16 as builder
|
3 |
|
4 |
# Set the working directory
|
5 |
WORKDIR /app
|
|
|
16 |
|
17 |
# Use an Nginx image to serve the built app
|
18 |
FROM nginx:alpine
|
19 |
+
COPY --from=builder /app/build /usr/share/nginx/html
|
20 |
|
21 |
# Expose the port Nginx runs on
|
22 |
EXPOSE 80
|