content: # https://hub.docker.com/r/linuxserver/code-server
  FROM linuxserver/code-server:4.90.3
  
  # ENV for Code-server (VSCode)
  ENV TZ="Asia/Seoul"
  ENV PUID=1000
  ENV PGID=1000
  
  # Update & Install the packages
  RUN apt-get update && apt-get -y upgrade
  
  RUN apt install -y ca-certificates curl gnupg software-properties-common wget unzip apt-transport-https
  
  # Docker CLI
  RUN install -m 0755 -d /etc/apt/keyrings  \
      && curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc  \
      && chmod a+r /etc/apt/keyrings/docker.asc
  
  RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
        $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
        tee /etc/apt/sources.list.d/docker.list > /dev/null
  
  RUN apt-get update && apt-get install -y docker-ce docker-ce-cli
  
  # Install AWS CLI from `amazon/aws-cli:2.17.9` image
  COPY --from=amazon/aws-cli:2.17.9 /usr/local/aws-cli/v2 /usr/local/aws-cli/v2
  RUN ln -s /usr/local/aws-cli/v2/current/bin/aws /usr/local/bin/aws
  RUN ln -s /usr/local/aws-cli/v2/current/bin/aws_completer /usr/local/bin/aws_completer
  
  # Terraform
  RUN wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null  \
      && gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint  \
      && echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list
  
  RUN apt update && apt-get install -y terraform=1.6.6-1
  
  # Kubectl
  RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg  \
      && echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list
  
  RUN apt-get update && apt-get install -y kubectl
  
  # Kubectx & Kubens
  RUN git clone https://github.com/ahmetb/kubectx /opt/kubectx  \
      && ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx  \
      && ln -s /opt/kubectx/kubens /usr/local/bin/kubens
  