Skip to content
Open
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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ RUN apt-get install -y git unzip curl build-essential cmake ninja-build libx11-d
COPY compile.sh /

VOLUME /dependencies
VOLUME /output
VOLUME $HOME/Downloads/

WORKDIR /output
WORKDIR $HOME/Downloads/

RUN ["chmod", "+x", "/compile.sh"]

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ IMAGE_NAME := docker-aseprite

build: build-image
docker run --rm \
-v ${PWD}/output:/output \
-v ${HOME}/Downloads:/home/user/Downloads \
-v ${PWD}/dependencies:/dependencies \
${IMAGE_NAME}

Expand All @@ -11,4 +11,4 @@ build-compose:
docker-compose up

build-image:
docker build -t ${IMAGE_NAME} .
docker build -t ${IMAGE_NAME} .
6 changes: 3 additions & 3 deletions compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ gn gen out/Release-x64 --args="is_debug=false is_official_build=true skia_use_sy
ninja -C out/Release-x64 skia modules

echo "Download Aseprite and compile"
cd /output
cd $HOME/Downloads/

if [ ! -d "/output/aseprite" ]
if [ ! -d "$HOME/Downloads/aseprite" ]
then
git clone -b v1.2.40 --recursive https://github.com/aseprite/aseprite.git
fi

cd aseprite
cd $HOME/Downloads/aseprite
mkdir -p build
cd build

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ services:
installer:
build: .
volumes:
- "./output:/output:rw"
- "$HOME/Downloads:/home/user/Downloads:rw"
- "./dependencies:/dependencies:rw"