random things

Drake 2 years ago
parent a539f5ed11
commit 8886a693f2

@ -2,11 +2,11 @@
FROM alpine AS builder
RUN apk add gcc musl-dev make git gc gc-dev file
RUN apk add gcc musl-dev make git gc gc-dev
RUN git clone https://git.ruthenic.com/ruthenic/httpsrv /httpsrv
ENV CC_FLAGS "-Ofast -s -static"
ENV CC_FLAGS "-s -static -fsanitize=undefined -fsanitize=address"
RUN cd /httpsrv \
&& make
@ -16,15 +16,12 @@ RUN mkdir /httpsrv/bin/etc
RUN adduser -D srvusr
FROM scratch
WORKDIR /
WORKDIR /home/srvusr
EXPOSE 7677
COPY --from=builder /httpsrv/bin/httpsrv /httpsrv
COPY --from=builder /etc/passwd /etc/passwd
USER srvusr
WORKDIR /home/srvusr
COPY ./srv .
CMD ["/httpsrv", "--dir", "/home/srvusr", "--addr", "0.0.0.0"]

Binary file not shown.
Loading…
Cancel
Save