mirror of
https://github.com/FranP-code/classify_saved_videos_yt.git
synced 2025-10-13 00:32:25 +00:00
Devcontainer setup
This commit is contained in:
46
.devcontainer/Dockerfile
Normal file
46
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,46 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install system dependencies (no Ollama needed - using separate container)
|
||||
RUN apt-get update && apt-get install -y \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-dev \
|
||||
curl \
|
||||
wget \
|
||||
git \
|
||||
sudo \
|
||||
xvfb \
|
||||
x11vnc \
|
||||
fluxbox \
|
||||
novnc \
|
||||
websockify \
|
||||
firefox \
|
||||
python3-tk \
|
||||
build-essential \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create user vscode
|
||||
RUN useradd -m -s /bin/bash vscode && \
|
||||
usermod -aG sudo vscode && \
|
||||
echo "vscode ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||
|
||||
WORKDIR /workspace
|
||||
RUN chown vscode:vscode /workspace
|
||||
|
||||
USER vscode
|
||||
|
||||
# Install pip
|
||||
RUN python3 -m pip install --user --upgrade pip
|
||||
|
||||
ENV PATH="/home/vscode/.local/bin:$PATH"
|
||||
ENV DISPLAY=:1
|
||||
|
||||
# Copy startup script and make it executable
|
||||
COPY --chown=vscode:vscode start-services.sh /home/vscode/start-services.sh
|
||||
USER root
|
||||
RUN chmod +x /home/vscode/start-services.sh
|
||||
USER vscode
|
||||
|
||||
CMD ["/bin/bash", "/home/vscode/start-services.sh"]
|
||||
Reference in New Issue
Block a user