Compare commits
No commits in common. "e18d8eb471dfd34819cc741f33fe23c6a304d2d9" and "992257a8b146b4a7804fc107122c9d8c212fde2f" have entirely different histories.
e18d8eb471
...
992257a8b1
@ -1,5 +0,0 @@
|
|||||||
target
|
|
||||||
Dockerfile
|
|
||||||
.dockerignore
|
|
||||||
.git
|
|
||||||
.gitignore
|
|
22
Dockerfile
22
Dockerfile
@ -1,28 +1,16 @@
|
|||||||
FROM rust:1.77.1-buster AS builder
|
FROM alpine:3.19
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY ./ ./
|
|
||||||
|
|
||||||
RUN cargo build --release
|
|
||||||
|
|
||||||
FROM debian:stable
|
|
||||||
|
|
||||||
ARG TARGET
|
ARG TARGET
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apk add --no-cache curl
|
||||||
RUN apt-get install -y ca-certificates
|
|
||||||
|
|
||||||
RUN apt-get clean -y; \
|
RUN curl -L https://github.com/redlib-org/redlib/releases/latest/download/redlib-${TARGET}.tar.gz | \
|
||||||
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
tar xz -C /usr/local/bin/
|
||||||
|
|
||||||
COPY --from=builder /app/target/release/ /usr/local/bin
|
|
||||||
|
|
||||||
RUN adduser --home /nonexistent --no-create-home --disabled-password redlib
|
RUN adduser --home /nonexistent --no-create-home --disabled-password redlib
|
||||||
|
|
||||||
USER redlib
|
USER redlib
|
||||||
|
|
||||||
# Tell Docker to expose port 808
|
# Tell Docker to expose port 8080
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
# Run a healthcheck every minute to make sure redlib is functional
|
# Run a healthcheck every minute to make sure redlib is functional
|
||||||
|
@ -1209,10 +1209,6 @@ a.search_subreddit:hover {
|
|||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment_right img {
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment_data > * {
|
.comment_data > * {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user