vieter/Dockerfile

19 lines
350 B
Docker

FROM chewingbever/vlang:latest AS builder
WORKDIR /app
# Copy over source code & build production binary
COPY src ./src
COPY Makefile ./
RUN LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static' \
make prod
FROM alpine:3.15
ENV REPO_DIR=/data
COPY --from=builder /app/pvieter /usr/local/bin/vieter
ENTRYPOINT [ "/usr/local/bin/vieter" ]