playmak3r commited on
Commit
92eba1f
1 Parent(s): 5f9624d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18 AS builder
2
+ RUN npm install
3
+ RUN npm run build
4
+
5
+
6
+ FROM python:3.10-slim
7
+
8
+ # Copie o código da aplicação para o container
9
+ COPY server/* /app/
10
+ # Defina o diretório de trabalho
11
+ WORKDIR /app
12
+ RUN pip install --no-cache-dir -r /app/requirements.txt
13
+ RUN python /app/setup.py -download
14
+
15
+ # Comando para executar o script Python
16
+ CMD ["python", "app.py"]