13ze commited on
Commit
6c02be7
verified
1 Parent(s): b2ea75f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use uma imagem base adequada
2
+ FROM python:3.8-slim
3
+
4
+ # Instalar depend锚ncias do WP-CLI
5
+ RUN apt-get update && apt-get install -y \
6
+ curl \
7
+ unzip \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Instalar WP-CLI
11
+ RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
12
+ && chmod +x wp-cli.phar \
13
+ && mv wp-cli.phar /usr/local/bin/wp
14
+
15
+ # Definir o diret贸rio de trabalho
16
+ WORKDIR /app
17
+
18
+ # Instalar as depend锚ncias Python
19
+ COPY requirements.txt ./
20
+ RUN pip install -r requirements.txt
21
+
22
+ # Copiar o c贸digo do aplicativo
23
+ COPY . .
24
+
25
+ # Comando para iniciar o aplicativo
26
+ CMD ["python", "app.py"]