Skip to content

Instantly share code, notes, and snippets.

View zucchinidev's full-sized avatar
🎯
Focusing

Andrea Zucchini zucchinidev

🎯
Focusing
View GitHub Profile
@bgadrian
bgadrian / Dockerfile
Last active March 19, 2019 08:36
Multi phase Go 1.11 module builder and scratch container for a swagger web service
FROM golang:1.11.1 AS builder
WORKDIR /src
#avoid downloading the dependencies on succesive builds
COPY go.mod go.sum ./
RUN go mod download
RUN go mod verify
COPY . .
RUN mkdir -p ./build/
@troyharvey
troyharvey / deployment.yml
Last active July 30, 2024 15:15
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@mjason
mjason / Dockerfile
Last active February 25, 2024 21:51
build phoenix in docker
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y git wget curl build-essential
RUN wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update
RUN apt-get install erlang -y
RUN apt-get install -y elixir
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
@coolaj86
coolaj86 / how-to-publish-to-npm.md
Last active September 7, 2024 22:18
How to publish packages to NPM

Getting Started with NPM (as a developer)

As easy as 1, 2, 3!

Updated:

  • Aug, 08, 2022 update config docs for npm 8+
  • Jul 27, 2021 add private scopes
  • Jul 22, 2021 add dist tags
  • Jun 20, 2021 update for --access=public
  • Sep 07, 2020 update docs for npm version