24 lines
628 B
Docker
24 lines
628 B
Docker
FROM codercom/enterprise-golang:ubuntu
|
|
|
|
# Run everything as root
|
|
USER root
|
|
|
|
# Packages required for multi-editor support
|
|
RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && \
|
|
apt-get install -y \
|
|
libxtst6 \
|
|
libxrender1 \
|
|
libfontconfig1 \
|
|
libxi6 \
|
|
libgtk-3-0
|
|
|
|
# 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
|
|
|
|
# Set back to coder user
|
|
USER coder
|