Skip to content

Commit eac6426

Browse files
chore: 🧑‍💻 update docker commands
Signed-off-by: Andy Augustin <[email protected]>
1 parent e265325 commit eac6426

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
########################################
22
# prod image
33
#######################################
4-
FROM alpine:3.20.2 as prod
4+
FROM alpine:3.20.2 AS prod
55

66
ARG GH_CLI_VER=2.44.1
77

@@ -36,7 +36,7 @@ ENTRYPOINT ["/bin/bash", "/bin/entrypoint.sh"]
3636
#######################################
3737
# image for dev build environment
3838
######################################
39-
FROM prod as dev
39+
FROM prod AS dev
4040

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

5959
# install packages
6060
RUN apk add --update --no-cache bash make git zsh curl tmux

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ help: ## help target to show available commands with information
1919

2020
.PHONY: markdownlint
2121
markdownlint: ## Validate markdown files
22-
docker-compose run docs markdownlint .
22+
docker compose run docs markdownlint .
2323

2424
.PHONY: zsh
2525
zsh: ## open dev container with build environment
26-
docker-compose run --service-ports dev
26+
docker compose run --service-ports dev
2727

2828
.PHONY: prod
2929
prod: ## run the prod docker image with bash
30-
docker-compose run prod
30+
docker compose run prod
3131

3232
.PHONY: prune
3333
prune: ## delete the whole environment
34-
docker-compose down -v --rmi all --remove-orphans
34+
docker compose down -v --rmi all --remove-orphans
3535

3636
.Phony: shellcheck
3737
shellcheck: ## run shellcheck
38-
docker-compose run shellcheck -x src/*.sh
38+
docker compose run shellcheck -x src/*.sh

0 commit comments

Comments
 (0)