Skip to content

Instantly share code, notes, and snippets.

Example Dockerfile

FROM node:12-alpine
# Adding build tools to make yarn install work on Apple silicon / arm64 machines
RUN apk --no-cache --virtual build-dependencies add python2 make g++
COPY . .
RUN yarn install --production
CMD ["node", "src/index.js"]
zincsoda /
Last active April 8, 2017 20:16
How to create django REST API in less than 20 minutes

1. Set up a python virtual enviornment

a. install virtualenv

sudo easy_install pip
sudo pip install setuptools --no-use-wheel --upgrade
sudo pip install virtualenv
sudo pip install virtualenvwrapper
cd $HOME
mkdir .virtualenvs