Skip to content

Instantly share code, notes, and snippets.

View notes-on-docker.md

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++
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "src/index.js"]
@zincsoda
zincsoda / meetups_api_description.md
Last active Apr 8, 2017
How to create django REST API in less than 20 minutes
View meetups_api_description.md

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