Create a working docker-compose file.
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,5 +1,5 @@
|
||||
FROM nimlang/nim:alpine as nim
|
||||
MAINTAINER setenforce@protonmail.com
|
||||
LABEL maintainer="setenforce@protonmail.com"
|
||||
EXPOSE 8080
|
||||
|
||||
RUN apk --no-cache add libsass-dev libffi-dev openssl-dev redis openssh-client
|
||||
@@ -11,9 +11,9 @@ RUN nimble build -y -d:release --passC:"-flto" --passL:"-flto" \
|
||||
&& strip -s nitter \
|
||||
&& nimble scss
|
||||
|
||||
FROM redis:6-alpine
|
||||
FROM alpine:latest
|
||||
WORKDIR /src/
|
||||
RUN apk --no-cache add pcre-dev sqlite-dev
|
||||
COPY --from=nim /src/nitter/nitter /src/nitter/start.sh /src/nitter/nitter.conf ./
|
||||
RUN apk --no-cache add pcre sqlite
|
||||
COPY --from=nim /src/nitter/nitter /src/nitter/nitter.conf ./
|
||||
COPY --from=nim /src/nitter/public ./public
|
||||
CMD ["./start.sh"]
|
||||
CMD ./nitter
|
||||
|
||||
Reference in New Issue
Block a user