mirror of
https://github.com/pret/pokediamond.git
synced 2026-10-02 13:26:47 -05:00
Added Dockerfile and build script
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM i386/alpine
|
||||
|
||||
RUN apk update
|
||||
RUN apk add --no-cache build-base libpng-dev wine ncurses freetype
|
||||
RUN apk add binutils-arm-none-eabi --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
|
||||
|
||||
ENV BUSYBOX 1
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["/bin/sh"]
|
||||
@@ -192,7 +192,11 @@ LDFLAGS = -nodead -w off -proc v5te -interworking -map closure,unused -symtab so
|
||||
####################### Other Tools #########################
|
||||
|
||||
# DS TOOLS
|
||||
ifndef BUSYBOX
|
||||
SHA1SUM = sha1sum --quiet
|
||||
else
|
||||
SHA1SUM = sha1sum
|
||||
endif
|
||||
JSONPROC = $(TOOLS_DIR)/jsonproc/jsonproc$(EXE)
|
||||
GFX = $(TOOLS_DIR)/nitrogfx/nitrogfx$(EXE)
|
||||
SCANINC = $(TOOLS_DIR)/scaninc/scaninc$(EXE)
|
||||
|
||||
11
build_docker.sh
Executable file
11
build_docker.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
ver="0.1"
|
||||
|
||||
docker inspect pokediamond:$ver > /dev/null
|
||||
if [ $? = 0 ]; then
|
||||
echo "Not rebuilding image since image exists";
|
||||
else
|
||||
docker build -t pokediamond:$ver .
|
||||
fi
|
||||
docker run --network=none -it -v $(pwd):/app pokediamond:$ver
|
||||
Reference in New Issue
Block a user