coder-enterprise-images/images/goland/Dockerfile.centos

33 lines
839 B
Docker

FROM centos:8
RUN yum update -y && yum install -y \
which \
git \
bash \
curl \
man \
vim \
sudo \
gnupg \
# The following libraries are required for the IDE to be able to communicate with
# code-server through xserver messaging.
openssl \
libXtst \
libXrender \
fontconfig \
libXi \
gtk3 \
libGL
# Install goland.
RUN mkdir -p /opt/goland
RUN curl -L "https://download.jetbrains.com/product?code=GO&latest&distribution=linux" | tar -C /opt/goland --strip-components 1 -xzvf -
# Add a binary to the PATH that points to the goland startup script.
RUN ln -s /opt/goland/bin/goland.sh /usr/bin/goland
# Add a user `coder` so that you're not developing as the `root` user
RUN adduser coder && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
USER coder