Skip to content

Instantly share code, notes, and snippets.

View livcarman's full-sized avatar

Liv Carman livcarman

  • Chandler, AZ
  • 18:30 (UTC -07:00)
View GitHub Profile
@livcarman
livcarman / Dockerfile
Created November 21, 2018 15:01
Dockerfile boilerplate for Django + uWSGI
# Depends on the $PORT environment variable (for compatibility with Heroku)
FROM python:3.7.1-alpine3.8
# Set a working directory
WORKDIR /usr/src/app/
# Copy requirements file to known location
COPY requirements.txt /requirements.txt
# Install build deps, run `pip install`, and remove unneeded build deps all
@livcarman
livcarman / docker-cleanup.sh
Created October 3, 2018 17:24
Docker Cleanup/Purge
#!/bin/bash
# This cleans out absolutely EVERYTHING, unlike `docker system prune`
# Stop all running containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
@livcarman
livcarman / python-build-requirements.sh
Last active December 19, 2023 18:23
Python build requirements (Debian/Ubuntu)
sudo apt-get install -y \
build-essential \
curl \
git \
libbz2-dev \
libgdbm-dev \
libffi-dev \
liblzma-dev \
libncurses5-dev \
libncursesw5-dev \