2017-01-20 11:03:18 +01:00
|
|
|
# Visual Studio Code in a container
|
2015-06-09 22:44:12 +02:00
|
|
|
# NOTE: Needs the redering device (yeah... idk)
|
|
|
|
#
|
|
|
|
# docker run -d \
|
2016-06-25 15:38:22 +02:00
|
|
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -v $HOME:/home/user \
|
|
|
|
# -e DISPLAY=unix$DISPLAY \
|
|
|
|
# --device /dev/dri \
|
|
|
|
# --name vscode \
|
|
|
|
# jess/vscode
|
2015-06-09 22:44:12 +02:00
|
|
|
|
2019-07-26 20:55:49 +02:00
|
|
|
FROM debian:bullseye-slim
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-06-09 22:11:55 +02:00
|
|
|
|
2017-06-11 02:30:01 +02:00
|
|
|
# Tell debconf to run in non-interactive mode
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2015-06-09 22:11:55 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2017-06-11 02:30:01 +02:00
|
|
|
apt-transport-https \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2017-04-27 23:23:04 +02:00
|
|
|
gnupg \
|
2017-06-11 02:30:01 +02:00
|
|
|
--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 \
|
2018-02-18 19:27:19 +01:00
|
|
|
git \
|
2015-06-09 22:11:55 +02:00
|
|
|
libasound2 \
|
2016-02-04 01:11:52 +01:00
|
|
|
libatk1.0-0 \
|
|
|
|
libcairo2 \
|
|
|
|
libcups2 \
|
2017-06-11 02:30:01 +02:00
|
|
|
libexpat1 \
|
2016-02-04 01:11:52 +01:00
|
|
|
libfontconfig1 \
|
|
|
|
libfreetype6 \
|
2015-06-09 22:11:55 +02:00
|
|
|
libgtk2.0-0 \
|
2016-02-04 01:11:52 +01:00
|
|
|
libpango-1.0-0 \
|
2017-06-11 02:30:01 +02:00
|
|
|
libx11-xcb1 \
|
2016-02-04 01:11:52 +01:00
|
|
|
libxcomposite1 \
|
|
|
|
libxcursor1 \
|
2017-06-11 02:30:01 +02:00
|
|
|
libxdamage1 \
|
|
|
|
libxext6 \
|
|
|
|
libxfixes3 \
|
2016-02-04 01:11:52 +01:00
|
|
|
libxi6 \
|
|
|
|
libxrandr2 \
|
|
|
|
libxrender1 \
|
2016-11-09 22:04:37 +01:00
|
|
|
libxss1 \
|
2015-06-09 22:11:55 +02:00
|
|
|
libxtst6 \
|
2018-06-06 23:06:54 +02:00
|
|
|
openssh-client \
|
2017-06-11 02:30:01 +02:00
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2015-06-09 22:11:55 +02:00
|
|
|
|
2015-06-09 22:44:12 +02:00
|
|
|
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
|
2016-11-11 16:47:30 +01:00
|
|
|
|
2015-06-09 22:44:12 +02:00
|
|
|
WORKDIR $HOME
|
2015-06-09 22:11:55 +02:00
|
|
|
|
2017-04-27 23:23:04 +02:00
|
|
|
CMD [ "start.sh" ]
|