mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-24 08:38:40 -07:00
Move many third-party components' source codes from the src folder to a new folder called deps_src. The goal is to make the code structure clearer and easier to navigate.
17 lines
599 B
Bash
Executable file
17 lines
599 B
Bash
Executable file
#!/bin/bash
|
|
SCRIPT_DIR=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")
|
|
PROJECT_ROOT=$(dirname "$SCRIPT_DIR")
|
|
|
|
set -x
|
|
# Wishlist hint: For developers, creating a Docker Compose
|
|
# setup with persistent volumes for the build & deps directories
|
|
# would speed up recompile times significantly. For end users,
|
|
# the simplicity of a single Docker image and a one-time compilation
|
|
# seems better.
|
|
docker build -t orcaslicer \
|
|
--build-arg USER=$USER \
|
|
--build-arg UID=$(id -u) \
|
|
--build-arg GID=$(id -g) \
|
|
--build-arg NCORES=$NCORES \
|
|
-f "$SCRIPT_DIR/Dockerfile" \
|
|
$PROJECT_ROOT
|