|
|
|
FROM python:3.9 |
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
RUN apt-get update && \ |
|
apt-get install -y \ |
|
curl \ |
|
sudo \ |
|
build-essential \ |
|
default-jdk \ |
|
default-jre \ |
|
g++ \ |
|
gcc \ |
|
libzbar0 \ |
|
fish \ |
|
ffmpeg \ |
|
nmap \ |
|
ca-certificates \ |
|
zsh \ |
|
curl \ |
|
|
|
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && \ |
|
apt-get install -y nodejs |
|
|
|
|
|
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version=4.23.0-rc.2 |
|
|
|
|
|
RUN curl -fsSL https://ollama.com/install.sh | sh |
|
RUN curl -fsSL https://bun.sh/install | bash |
|
|
|
RUN useradd -m -s /bin/zsh coder && \ |
|
echo 'coder ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers |
|
|
|
|
|
RUN mkdir -p /home/coder/genz/roop |
|
WORKDIR /home/coder/genz/roop |
|
|
|
|
|
RUN git clone https://github.com/s0md3v/roop.git . |
|
|
|
|
|
RUN chown -R coder:coder /home/coder/genz/roop && \ |
|
chmod -R u+rwx /home/coder/genz/roop |
|
|
|
|
|
RUN mkdir -p /home/coder/.local/share/code-server/User |
|
|
|
|
|
RUN echo '{ \ |
|
"workbench.colorTheme": "Default Dark Modern", \ |
|
"telemetry.enableTelemetry": true, \ |
|
"telemetry.enableCrashReporter": true \ |
|
}' > /home/coder/.local/share/code-server/User/settings.json |
|
|
|
|
|
RUN chown -R coder:coder /home/coder/.local/share/code-server |
|
|
|
|
|
RUN sudo -u coder code-server --install-extension ms-python.python |
|
|
|
|
|
EXPOSE 8080 |
|
|
|
|
|
USER coder |
|
WORKDIR /home/coder/genz |
|
|
|
|
|
CMD ["sh", "-c", "code-server --bind-addr 0.0.0.0:7860 --auth password"] |
|
|
|
|
|
|
|
|