mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-26 16:57:23 +01:00
29 lines
800 B
Docker
29 lines
800 B
Docker
FROM python:3.11
|
|
|
|
# Download precompiled ttyd binary from GitHub releases
|
|
RUN apt-get update && \
|
|
apt-get install -y wget && \
|
|
wget https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.x86_64 -O /usr/bin/ttyd && \
|
|
chmod +x /usr/bin/ttyd && \
|
|
apt-get remove -y wget && \
|
|
apt-get autoremove -y && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV NVM_DIR /root/.nvm
|
|
|
|
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
|
|
&& . "$NVM_DIR/nvm.sh" \
|
|
&& nvm install node \
|
|
&& nvm use node
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY . .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
RUN python -m venv pilot-env
|
|
RUN /bin/bash -c "source pilot-env/bin/activate"
|
|
|
|
RUN pip install -r requirements.txt
|
|
WORKDIR /usr/src/app/pilot
|
|
|
|
EXPOSE 7681
|
|
CMD ["ttyd", "bash"] |