This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y \ | |
build-essential \ | |
curl \ | |
git \ | |
libbz2-dev \ | |
libgdbm-dev \ | |
libgdbm-compat-dev \ | |
libffi-dev \ | |
liblzma-dev \ | |
libncurses5-dev \ |