Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dockerfiles/vscode/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
64 lines (55 sloc)
1.36 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Visual Studio Code in a container | |
# NOTE: Needs the redering device (yeah... idk) | |
# | |
# docker run -d \ | |
# -v /tmp/.X11-unix:/tmp/.X11-unix \ | |
# -v $HOME:/home/user \ | |
# -e DISPLAY=unix$DISPLAY \ | |
# --device /dev/dri \ | |
# --name vscode \ | |
# jess/vscode | |
FROM debian:bullseye-slim | |
LABEL maintainer "Jessie Frazelle <jess@linux.com>" | |
# Tell debconf to run in non-interactive mode | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
--no-install-recommends | |
# Add the vscode debian repo | |
RUN curl -sSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | apt-key add - | |
RUN echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list | |
RUN apt-get update && apt-get -y install \ | |
code \ | |
git \ | |
libasound2 \ | |
libatk1.0-0 \ | |
libcairo2 \ | |
libcups2 \ | |
libexpat1 \ | |
libfontconfig1 \ | |
libfreetype6 \ | |
libgtk2.0-0 \ | |
libpango-1.0-0 \ | |
libx11-xcb1 \ | |
libxcomposite1 \ | |
libxcursor1 \ | |
libxdamage1 \ | |
libxext6 \ | |
libxfixes3 \ | |
libxi6 \ | |
libxrandr2 \ | |
libxrender1 \ | |
libxss1 \ | |
libxtst6 \ | |
openssh-client \ | |
--no-install-recommends \ | |
&& rm -rf /var/lib/apt/lists/* | |
ENV HOME /home/user | |
RUN useradd --create-home --home-dir $HOME user \ | |
&& chown -R user:user $HOME | |
COPY start.sh /usr/local/bin/start.sh | |
WORKDIR $HOME | |
CMD [ "start.sh" ] |