Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🧑‍💻 update docker commands #556

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
########################################
# prod image
#######################################
FROM alpine:3.20.2 as prod
FROM alpine:3.20.2 AS prod

ARG GH_CLI_VER=2.44.1

Expand Down Expand Up @@ -36,7 +36,7 @@ ENTRYPOINT ["/bin/bash", "/bin/entrypoint.sh"]
#######################################
# image for dev build environment
######################################
FROM prod as dev
FROM prod AS dev

# install packages
RUN apk add --update --no-cache make zsh tmux vim tig
Expand All @@ -54,7 +54,7 @@ ENTRYPOINT ["/bin/zsh"]
#######################################
# image for creating the documentation
######################################
FROM node:22.6.0-alpine as docs
FROM node:22.6.0-alpine AS docs

# install packages
RUN apk add --update --no-cache bash make git zsh curl tmux
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ help: ## help target to show available commands with information

.PHONY: markdownlint
markdownlint: ## Validate markdown files
docker-compose run docs markdownlint .
docker compose run docs markdownlint .

.PHONY: zsh
zsh: ## open dev container with build environment
docker-compose run --service-ports dev
docker compose run --service-ports dev

.PHONY: prod
prod: ## run the prod docker image with bash
docker-compose run prod
docker compose run prod

.PHONY: prune
prune: ## delete the whole environment
docker-compose down -v --rmi all --remove-orphans
docker compose down -v --rmi all --remove-orphans

.Phony: shellcheck
shellcheck: ## run shellcheck
docker-compose run shellcheck -x src/*.sh
docker compose run shellcheck -x src/*.sh