wp-cli / Dockerfile
13ze's picture
Create Dockerfile
6c02be7 verified
raw
history blame contribute delete
616 Bytes
# Use uma imagem base adequada
FROM python:3.8-slim
# Instalar depend锚ncias do WP-CLI
RUN apt-get update && apt-get install -y \
curl \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Instalar WP-CLI
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x wp-cli.phar \
&& mv wp-cli.phar /usr/local/bin/wp
# Definir o diret贸rio de trabalho
WORKDIR /app
# Instalar as depend锚ncias Python
COPY requirements.txt ./
RUN pip install -r requirements.txt
# Copiar o c贸digo do aplicativo
COPY . .
# Comando para iniciar o aplicativo
CMD ["python", "app.py"]