trinhvanhung commited on
Commit
6e61f10
·
1 Parent(s): bc1b991

Add fetch + static server

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,7 +1,5 @@
1
  FROM node:18-slim AS node_layer
2
 
3
- RUN apt-get update && apt-get install -y wget ca-certificates && rm -rf /var/lib/apt/lists/*
4
-
5
  # Build layer cho http-server
6
  RUN npm install -g http-server
7
 
@@ -25,5 +23,7 @@ COPY --chown=user . /app
25
  COPY --from=node_layer /usr/local/bin/http-server /usr/local/bin/http-server
26
  COPY --from=node_layer /usr/local/lib/node_modules /usr/local/lib/node_modules
27
 
 
 
28
  # Chạy 2 tiến trình song song: fetch_data và http-server
29
  CMD ["sh", "-c", "python app.py & http-server ./static -p 7860"]
 
1
  FROM node:18-slim AS node_layer
2
 
 
 
3
  # Build layer cho http-server
4
  RUN npm install -g http-server
5
 
 
23
  COPY --from=node_layer /usr/local/bin/http-server /usr/local/bin/http-server
24
  COPY --from=node_layer /usr/local/lib/node_modules /usr/local/lib/node_modules
25
 
26
+ RUN apt-get update && apt-get install -y wget ca-certificates && rm -rf /var/lib/apt/lists/*
27
+
28
  # Chạy 2 tiến trình song song: fetch_data và http-server
29
  CMD ["sh", "-c", "python app.py & http-server ./static -p 7860"]