Skip to content

Commit 7a789e3

Browse files
committed
chore: fixing dockerfile
1 parent 867fc90 commit 7a789e3

File tree

2 files changed

+35013
-6
lines changed

2 files changed

+35013
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
FROM nimlang/nim:2.2.0-alpine-regular as nim
1+
FROM alpine:latest as nim
22
LABEL maintainer="setenforce@protonmail.com"
33

4-
RUN apk --no-cache add libsass-dev pcre
4+
RUN apk --no-cache add gcc git libc-dev libsass-dev "nim=1.6.8-r0" nimble pcre
5+
6+
COPY packages.json ~/.nimble/packages.json
57

68
WORKDIR /src/nitter
79

810
COPY nitter.nimble .
911
RUN nimble install -y --depsOnly
1012

1113
COPY . .
12-
RUN nimble build -d:danger -d:lto -d:strip --mm:refc \
14+
RUN nimble build -d:danger -d:lto -d:strip \
1315
&& nimble scss \
1416
&& nimble md
1517

1618
FROM alpine:latest
1719
WORKDIR /src/
18-
RUN apk --no-cache add pcre ca-certificates
20+
RUN apk --no-cache add ca-certificates pcre openssl1.1-compat
1921
COPY --from=nim /src/nitter/nitter ./
2022
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
2123
COPY --from=nim /src/nitter/public ./public
2224
EXPOSE 8080
23-
RUN adduser -h /src/ -D -s /bin/sh nitter
24-
USER nitter
2525
CMD ./nitter

0 commit comments

Comments
 (0)