Skip to content

Instantly share code, notes, and snippets.

View msreekm's full-sized avatar
💭
Next.js + docker + Kubernetes

sreekumar menon msreekm

💭
Next.js + docker + Kubernetes
  • roofstock inc
  • San Francisco
  • X @msreekm
View GitHub Profile
# ---- Base Node ----
FROM mhart/alpine-node:10 AS base
# install node
RUN apk add --no-cache nodejs-current
# set working directory
WORKDIR /root/nextApp
# copy project file
COPY package.json .
COPY tsconfig.server.json .
COPY .npmrc .
@rafaeltuelho
rafaeltuelho / linux-shell-docker-cli.sh
Last active July 12, 2024 09:30
Some useful shell aliases and function for Docker command line
# Docker aliases
alias di='sudo docker images'
alias dps='sudo docker ps -a'
# useful Docker functions
dock-run() { sudo docker run -i -t --privileged $@ ;}
dock-exec() { sudo docker exec -i -t $@ /bin/bash ;}
dock-log() { sudo docker logs --tail=all -f $@ ;}
dock-port() { sudo docker port $@ ;}
dock-vol() { sudo docker inspect --format '{{ .Volumes }}' $@ ;}