Skip to content

Instantly share code, notes, and snippets.

IMAGE_REPO = registry.gitlab.com
GROUP_NAME =
PROJECT_NAME =
DOCKERFILE = Dockerfile
CONTEXT = ..
# tag = $(shell cat $(CONTEXT)/version.txt)
IMAGE = $(IMAGE_REPO)/$(GROUP_NAME)/$(PROJECT_NAME):$(tag)
@voledemar
voledemar / python-uwsgi.Dockerfile
Created July 26, 2019 08:07
The minimal typical Dockerfile files: python with uWSGI
FROM alpine:3.10.1
WORKDIR /app
RUN apk add --no-cache \
python3==3.7.3-r0 \
uwsgi-python3==2.0.18-r0
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
CMD [ "uwsgi", "--ini", "/uwsgi/uwsgi.ini" ]
@voledemar
voledemar / .gitignore
Last active November 26, 2020 12:09
The minimal typical .gitignore file: common patterns
# IDEs
## JetBrains
.idea/
*.iml
*.ipr
*.iws
## VS Code
.vscode/
@voledemar
voledemar / docker-compose.Makefile
Last active July 26, 2019 08:14
The minimal typical Makefile: docker-compose
all: up ps logs
# ======= Services =======
up:
@docker-compose up --remove-orphans -d --force-recreate $(c)
up-build:
@docker-compose up --remove-orphans -d --force-recreate --build $(c)
down: