vieter/Dockerfile

20 lines
369 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'
2022-01-15 11:16:09 +01:00
RUN v -o pvieter -clags "-O3" src
FROM alpine:3.15
ENV REPO_DIR=/data
COPY --from=builder /app/pvieter /usr/local/bin/vieter
ENTRYPOINT [ "/usr/local/bin/vieter" ]