Commit ad516461 authored by ale's avatar ale
Browse files

Fix Go binary installation

parent 38cc2ad3
Pipeline #12472 passed with stage
in 1 minute and 16 seconds
FROM debian:bullseye AS build
RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends rsync git golang ca-certificates
ADD . /src
RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends rsync git golang ca-certificates && cd /src && ./scripts/lint.sh && ./scripts/update.sh
WORKDIR /src
RUN ./scripts/lint.sh && ./scripts/update.sh
FROM registry.git.autistici.org/ai3/docker/apache2-base:buster
COPY --from=build /src/public /var/www/autistici.org
COPY --from=build /src/build/bin/sitesearch /usr/sbin/sitesearch
COPY --from=build /root/go/bin/sitesearch /usr/sbin/sitesearch
COPY --from=build /src/index /var/lib/sitesearch/index
COPY templates /var/lib/sitesearch/templates
COPY docker/conf /tmp/conf
......
......@@ -73,7 +73,7 @@ update_website() {
# Install the required Go utilities.
gostatic=$(find_or_install_go_pkg gostatic github.com/piranha/gostatic)
sitesearch=$(find_or_install_go_pkg sitesearch git.autistici.org/ai/webtools)
sitesearch=$(find_or_install_go_pkg sitesearch git.autistici.org/ai/webtools/...)
test -d "${site_dir}" || mkdir -p "${site_dir}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment