mirror of
https://github.com/r-smith/deceptifeed.git
synced 2025-10-23 00:12:22 +00:00
Change output directory to ./bin when compiling
Previously, binaries were compiled to ./out.
This commit is contained in:
@@ -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"]
|
@@ -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
|
||||
|
Reference in New Issue
Block a user