Skip to content

Instantly share code, notes, and snippets.

Dockerfiles

multi stages build with busybox

FROM golang:1.11-alpine AS build
WORKDIR /src/
COPY main.go go.* /src/
RUN CGO_ENABLED=0 go build -o /bin/demo

gcp

gcloud

# Create configuration
gcloud init

# Show configs
gcloud config list
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
curl --silent --location https://rpm.nodesource.com/setup_14.x | sudo bash -
sudo yum install -y yarn
# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash
# nvm install 14
# nvm use 14
sudo yum install -y git