Skip to content

Instantly share code, notes, and snippets.

View arnav13081994's full-sized avatar

Arnav Choudhury arnav13081994

View GitHub Profile
@eduzen
eduzen / Dockerfile
Created May 19, 2019 18:35
Dockerfile for django/python with multistage builds based on alpine
FROM python:3.7-alpine as base
ENV PYTHONDONTWRITEBYTECODE 1
COPY requirements.txt requirements_dev.txt ./
RUN apk add --update --no-cache --virtual .build-deps \
build-base \
postgresql-dev \
libffi-dev \
python3-dev \
@willurd
willurd / web-servers.md
Last active April 18, 2024 14:15
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000