Spaces:
Paused
Paused
File size: 794 Bytes
0a22cc8 a0676d2 0a22cc8 49b206b 0a22cc8 a0676d2 0a22cc8 a0676d2 0a22cc8 a0676d2 0a22cc8 e5b0ca7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | FROM ubuntu:22.04
# Evitar travamentos por perguntas ocultas na instalação
ENV DEBIAN_FRONTEND=noninteractive
# Instalar o ttyd e o curl direto do sistema do Ubuntu
RUN apt-get update && apt-get install -y \
ttyd \
curl \
gnupg \
&& rm -rf /var/lib/apt/lists/*
# Instalar o Node.js v20 de forma limpa
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Instalar o Codex CLI da OpenAI globalmente
RUN npm install -g @openai/codex
# Criar o usuário padrão UID 1000 exigido pelo Hugging Face
RUN useradd -m -u 1000 user
USER user
WORKDIR /home/user
# Porta padrão do Hugging Face
EXPOSE 7860
# Iniciar o terminal liberado para digitação (-W)
CMD ["ttyd", "-W", "-p", "7860", "bash"]
|