Closed s0alqasim1d closed 1 year ago
solved by linking /lib/libc.so.6 to /usr/lib/libresolv.so.2 with ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2
before reaching the update command in the dockerfile.
FROM golang:latest AS build-env
RUN go install github.com/rverton/webanalyze/cmd/webanalyze@latest
FROM alpine:latest
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY --from=build-env /go/bin/webanalyze .
RUN mkdir -p /app \
&& adduser -D webanalyze \
&& chown -R webanalyze:webanalyze /app \
&& ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2
USER webanalyze
RUN ["./webanalyze", "-update"]
ENTRYPOINT ["./webanalyze"]
Running build on Docker windows with WSL2 returns an error while building