Dockerfile•1.04 kB
FROM python:3.9-slim
# Metadados da imagem
LABEL maintainer="ReuneMacacada"
LABEL version="1.1.1"
LABEL description="MCP Server - Gerador de planos de aprendizagem com otimizações de performance"
WORKDIR /app
# Install Chrome dependencies for Puppeteer
RUN apt-get update && apt-get install -y \
wget \
gnupg \
ca-certificates \
procps \
libxss1 \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# PORT is generally provided by the environment of the hosting provider
ENV PORT=8080
EXPOSE 8080
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]