LUISGDUV commited on
Commit
f504979
·
verified ·
1 Parent(s): a47da9f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nikolaik/python-nodejs:python3.10-nodejs18
2
+
3
+ WORKDIR /app
4
+
5
+ # Instala dependências do Node (se existirem)
6
+ COPY package*.json ./
7
+ RUN npm install --omit=dev || true
8
+
9
+ # Instala dependências do Python (se existirem)
10
+ COPY requirements.txt ./
11
+ RUN pip install -r requirements.txt || true
12
+
13
+ COPY . .
14
+
15
+ # Comando principal para iniciar. Se for um script Python, muda para: CMD ["python", "app.py"]
16
+ CMD ["node", "index.js"]