repos
/ dockerfiles master

dockerfiles

mirror archived upstream

A single Dockerfile that spins up a full-featured web development workstation. Usage instructions are at the top of each Dockerfile.

alpinearchlinuxdjangodockerdocker-composedockerfilehandcodedpostgresqlrediswebdev

1.6 KB · 60 lines · markdown Raw History
 1> **Archived.** This project is no longer in use and no longer maintained. Last updated April 2026.
 2
 3# dockerfiles
 4
 5A single Dockerfile that spins up a full-featured web development workstation.
 6
 7
 8## What's inside
 9
10- Ubuntu 24.04 base with common CLI tools (curl, git, neovim, tmux, rsync, ssh)
11- Python 3 with pip, venv, and Pipenv preinstalled
12- Node.js 22.x with Yarn managed through Corepack
13- PostgreSQL 16 and Redis managed by supervisord for quick local services
14- Docker CLI and Docker Compose v2 so containerized workflows keep working inside the dev container
15
16
17## Prerequisites
18
19- Docker 20.10 or newer on the host machine
20- Optional: VS Code Remote Containers / Dev Containers for editor integration
21
22
23## Build the image
24
25```bash
26docker build --tag overshard/webdev:latest webdev
27```
28
29
30## Create persistent volumes (recommended)
31
32```bash
33docker volume create --name bythewood-code
34docker volume create --name bythewood-ssh
35```
36
37
38## Start the container
39
40```bash
41docker run --detach --restart unless-stopped \
42  --name bythewood-webdev \
43  --volume bythewood-code:/home/dev/code \
44  --volume bythewood-ssh:/home/dev/.ssh \
45  --volume /var/run/docker.sock:/var/run/docker.sock \
46  overshard/webdev:latest
47```
48
49The container runs as a `dev` user with passwordless sudo, so editor tooling can install dependencies without extra setup. Mounting the Docker socket lets inner Docker commands talk to the host engine.
50
51
52## Stop and clean up
53
54```bash
55docker stop bythewood-webdev
56docker rm bythewood-webdev
57```
58
59Volumes are left untouched so source code and SSH keys persist between rebuilds.