fahrulputra40 commited on
Commit
c05e8a3
·
1 Parent(s): 97f7c24
Files changed (1) hide show
  1. DockerFile +5 -4
DockerFile CHANGED
@@ -4,16 +4,17 @@ WORKDIR /app/space/frontend
4
  COPY frontend/ .
5
  RUN npm install && npm run build
6
 
 
7
  FROM python:3.10-slim
8
  WORKDIR /app/space
9
 
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
 
12
 
13
- COPY backend/ ./backend/
14
  COPY --from=frontend /app/frontend/dist ./frontend
15
 
16
  ENV FLASK_APP=backend/app.py
17
- ENV FLASK_RUN_PORT=7860
18
-
19
- CMD ["flask", "run", "--host=0.0.0.0"]
 
4
  COPY frontend/ .
5
  RUN npm install && npm run build
6
 
7
+ RUN echo "Build VUE selesai!"
8
  FROM python:3.10-slim
9
  WORKDIR /app/space
10
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
+ RUN echo "PIP Install selesai!"
14
 
15
+ COPY backend/ backend/
16
  COPY --from=frontend /app/frontend/dist ./frontend
17
 
18
  ENV FLASK_APP=backend/app.py
19
+ RUN echo "Go..."
20
+ CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]