diff --git a/.gitignore b/.gitignore index b6e4761..91939da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +*~ + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6ab1710 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:alpine AS base + +RUN \ + --mount=type=cache,target=/var/cache/apk \ + apk add -U make + +WORKDIR /app \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9391a51 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +DEV_SERVICE := dev + +.PHONY: all +all: dev-env + +dev-env: + docker compose build --progress=plain $(DEV_SERVICE) diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6cf909f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,5 @@ +services: + dev: + container_name: spiff-element-units-dev + build: + dockerfile: Dockerfile \ No newline at end of file