Skip to content

Commit 0b507f1

Browse files
fix(prologue): add sqlite-dev for db_sqlite import
The Nim compiler needs sqlite headers at compile time for std/db_sqlite. Install sqlite-dev in build stage and sqlite-libs in runtime stage.
1 parent 80a9958 commit 0b507f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frameworks/prologue/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM nimlang/nim:2.0.14-alpine AS build
2+
RUN apk add --no-cache sqlite-dev
23
WORKDIR /app
34
COPY src/ ./
45
RUN nimble install -y prologue zippy
56
RUN nim c -d:release -d:danger --opt:speed --threads:on -o:server server.nim
67

78
FROM alpine:3.19
8-
RUN apk add --no-cache libgcc
9+
RUN apk add --no-cache libgcc sqlite-libs
910
COPY --from=build /app/server /server
1011
EXPOSE 8080
1112
CMD ["/server"]

0 commit comments

Comments
 (0)