got something working

This commit is contained in:
Aaro Koivukangas
2026-01-14 19:30:55 +02:00
parent a61e676f87
commit ac646f2c1d
5 changed files with 37 additions and 5 deletions
+18 -2
View File
@@ -1,12 +1,28 @@
FROM python:3.12-alpine3.21
FROM alpine:3.23 AS builder
RUN apk update
RUN apk add --no-cache build-base git
RUN apk add --no-cache cmake cmake-doc cmake-extras pkgconf
WORKDIR /usr/src/compiler
COPY compiler .
RUN rm -rf build
RUN mkdir build/ && cd build && cmake .. && make -j8
FROM python:3.12-alpine3.21 AS runner
RUN pip install --no-cache-dir poetry==2.0.0
RUN apk add --no-cache bash binutils
WORKDIR /compiler
WORKDIR /usr/src/app
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root --no-cache
COPY --from=builder /usr/src/compiler/build/compilers_compiler ./compilers_compiler
COPY . .
RUN poetry install --no-cache && ./check.sh