Skip to content

Commit 533f165

Browse files
committed
moved arguments logic to docker-entrypoint.sh
1 parent 268b973 commit 533f165

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM gcc:latest
2-
LABEL version="0.1.0-alpha"
2+
LABEL version="0.1.1-alpha"
33
LABEL vendor1="DanteyPL"
44

55
WORKDIR /build
@@ -37,7 +37,7 @@ RUN wget https://github.com/diasurgical/bannertool/releases/download/1.2.0/banne
3737
RUN unzip bannertool.zip -d ./
3838
RUN cp ./linux-x86_64/bannertool $DEVKITPRO/tools/bin/
3939

40+
COPY ./docker-entrypoint.sh ./
41+
4042
WORKDIR /build/source
41-
# ENTRYPOINT [ "/bin/bash" ]
42-
ENTRYPOINT [ "make" ]
43-
CMD [ "clean", "codegen", ";","make","cia" ]
43+
ENTRYPOINT [ "/build/docker-entrypoint.sh" ]

docker-entrypoint.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
if [[ $# -eq 0 ]];then
4+
make clean codegen
5+
make cia
6+
else
7+
# shellcheck disable=SC2068
8+
make $@
9+
$#
10+
fi

0 commit comments

Comments
 (0)