You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somebody forget to add most important file
COPY failed: stat /mnt/sda1/var/lib/docker/tmp/docker-builder413771057/dist/mikrotik-exporter_linux_amd64: no such file or directory
mikrotik-exporter_linux_amd64
Without it system useless. No possible to assemble docker image
The text was updated successfully, but these errors were encountered:
You could modify the dockerfile like this in order to build the app in a container.
FROM golang:1.13 AS builder
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN go build -v -o /usr/local/bin/mikrotik-exporter
FROM debian:9.9-slim
EXPOSE 9436
COPY scripts/start.sh /app/
COPY --from=builder /usr/local/bin/mikrotik-exporter /app/mikrotik-exporter
RUN chmod 755 /app/*
ENTRYPOINT ["/app/start.sh"]
Somebody forget to add most important file
COPY failed: stat /mnt/sda1/var/lib/docker/tmp/docker-builder413771057/dist/mikrotik-exporter_linux_amd64: no such file or directory
mikrotik-exporter_linux_amd64
Without it system useless. No possible to assemble docker image
The text was updated successfully, but these errors were encountered: