Skip to content

Instantly share code, notes, and snippets.

View oneteamai's full-sized avatar

OneTeam AI oneteamai

View GitHub Profile
@oneteamai
oneteamai / Dockerfile
Last active July 21, 2020 21:55
127MB image using multi-stage build
# module install
FROM node:13.10.1-alpine as module-install-stage
# set working directory
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
COPY package.json /app/package.json
RUN apk add yarn
@oneteamai
oneteamai / Dockerfile
Last active July 21, 2020 21:55
700MB image that uses shm-size option
# base image
FROM node:13.10.1-alpine
# set working directory
WORKDIR /app
COPY . .
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
@oneteamai
oneteamai / Dockerfile
Last active July 21, 2020 21:55
Initial Dockerfile that results in a 2.1GB image
# base image
FROM node:13.10.1-alpine
# set working directory
WORKDIR /app
COPY . .
ENV PATH /app/node_modules/.bin:$PATH