This file contains 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
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) |
This file contains 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
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" ] |
This file contains 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
# IDEs | |
## JetBrains | |
.idea/ | |
*.iml | |
*.ipr | |
*.iws | |
## VS Code | |
.vscode/ |
This file contains 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
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: |