Open
Description
Trying to build with docker, but returns with error
37.17 /src/database.nim(1, 8) Error: cannot open file: db_sqlite
37.19 nimble.nim(229) buildFromDir
37.19
37.19 Error: Build failed for the package: torrentinim
37.25 Info: Nimble data file "/root/.nimble/nimbledata2.json" has been saved.
37.25 make: *** [Makefile:2: deps] Error 1
Dockerfile:
FROM alpine:3.20 as build
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
RUN apk update \
&& apk upgrade \
&& apk add --no-cache \
bash \
ca-certificates \
git \
libpq \
wget \
nim \
nimble \
build-base
COPY . .
RUN make deps
RUN make build
FROM gcr.io/distroless/static-debian12
COPY --from=build /torrentinim /app
COPY --from=build /torrentinim-data.db /app
EXPOSE 50123
CMD ["/app/torrentinim"]
Also using nimlang/nim:1.6.12-ubuntu
doesn't build
2.640 Downloading https://github.com/sergiotapia/filesize using git
3.761 Verifying dependencies for filesize@2.0.0
3.770 Error: Unsatisfied dependency: nim (>= 2.0.4)
3.772 make: *** [Makefile:2: deps] Error 1
Metadata
Assignees
Labels
No labels