Change output directory to ./bin when compiling

Previously, binaries were compiled to ./out.
This commit is contained in:
Ryan Smith
2025-03-17 16:14:33 -07:00
parent 5dc1a6d91c
commit 115efa5b69
2 changed files with 4 additions and 4 deletions

View File

@@ -7,5 +7,5 @@ RUN make
FROM alpine:latest
RUN apk add --no-cache tzdata
WORKDIR /data
COPY --from=build-stage /build/out /
COPY --from=build-stage /build/bin /
ENTRYPOINT ["/deceptifeed"]

View File

@@ -158,9 +158,9 @@ install_app() {
if [[ -f "${script_dir}/${source_bin}" ]]; then
# Found in the same directory as the script.
source_bin="${script_dir}/${source_bin}"
elif [[ -f "${script_dir}/../out/${source_bin}" ]]; then
# Found in ../out relative to the script.
source_bin="${script_dir}/../out/${source_bin}"
elif [[ -f "${script_dir}/../bin/${source_bin}" ]]; then
# Found in ../bin relative to the script.
source_bin="${script_dir}/../bin/${source_bin}"
else
# Could not locate.
echo -e "${msg_error} ${white}Unable to locate the file: ${yellow}'${source_bin}'${clear}\n" >&2