From aa9602a0653eb162c661689f192cfdc2d3331604 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Mon, 10 Jan 2022 08:33:21 +0100 Subject: [PATCH] Added Dockerfile & custom compiler notice --- .dockerignore | 1 + Dockerfile | 11 ++++++++--- README.md | 7 +++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 4bfc405..d55305a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ * !vieter/ +!Makefile diff --git a/Dockerfile b/Dockerfile index a3f0b30..e8b2484 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,17 @@ -FROM thevlang/vlang:alpine-dev AS builder +FROM archlinux:latest AS builder WORKDIR /src COPY vieter ./vieter +COPY Makefile ./ -RUN v -prod vieter +RUN pacman \ + -Syu --noconfirm --needed \ + gcc git openssl make && \ + make customv && \ + jjr-v/v -prod vieter -FROM alpine:3.15.0 +FROM archlinux:latest ENV REPO_DIR=/data diff --git a/README.md b/README.md index c0d41cd..e3c79a2 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,13 @@ a while now. I wanted a fast language that I could code while relaxing, without having to exert too much mental effort & V seemed like the right choice for that. +### Custom Compiler + +Currently, this program only works with a very slightly modified version of the +V standard library, and therefore the compiler. The code for this can be found +[here](https://github.com/ChewingBever/v). For CI purposes & ease of use, you +can also clone & build that repo locally by running `make customv`. + ## Features The project will consist of a server-agent model, where one or more builder