Skip to content

Commit

Permalink
chore: 🧑‍💻 update docker commands (#556)
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Augustin <dev@andreas-augustin.org>
  • Loading branch information
AndreasAugustin committed Aug 12, 2024
1 parent e265325 commit 52a7efd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
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

0 comments on commit 52a7efd

Please sign in to comment.