docker wip

This commit is contained in:
Ben 2025-02-10 10:27:32 +01:00
parent f1dfd7b052
commit 78cc159e52
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B
2 changed files with 6 additions and 6 deletions

View File

@ -29,6 +29,6 @@ jobs:
with:
version: ${{ matrix.nim }}
- name: Build
run: nimble install -y
run: nimble build -y
- name: Test
run: nimble test -y

View File

@ -1,22 +1,22 @@
# Variables
ARG BUILDER=ubuntu:24.04
ARG IMAGE=${BUILDER}
ARG BUILDER=nimlang/nim:2.0.14
ARG IMAGE=ubuntu:24.04
ARG BUILD_HOME=/src
ARG MAKE_PARALLEL=${MAKE_PARALLEL:-4}
ARG NIMFLAGS="${NIMFLAGS:-"-d:disableMarchNative"}"
ARG USE_LIBBACKTRACE=${USE_LIBBACKTRACE:-1}
ARG APP_HOME=/crawler
# Build
FROM ${BUILDER} AS builder
ARG BUILD_HOME
ARG MAKE_PARALLEL
ARG NIMFLAGS
ARG USE_LIBBACKTRACE
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y git cmake curl make bash lcov build-essential
RUN curl https://nim-lang.org/choosenim/init.sh -sSf | sh
RUN choosenim 2.0.14
RUN apt-get update && apt-get install -y cmake build-essential
WORKDIR ${BUILD_HOME}
COPY . .