vieter/Dockerfile

20 lines
349 B
Docker
Raw Normal View History

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