mirror of
https://github.com/iritmaximus/compilers.git
synced 2026-10-12 19:13:35 +03:00
got something working
This commit is contained in:
+18
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user