Initial commit

This commit is contained in:
Aaro Koivukangas
2026-01-14 16:30:06 +02:00
commit 78b630e8cb
12 changed files with 437 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM python:3.12-alpine3.21
RUN pip install --no-cache-dir poetry==2.0.0
RUN apk add --no-cache bash binutils
WORKDIR /compiler
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root --no-cache
COPY . .
RUN poetry install --no-cache && ./check.sh
EXPOSE 3000
# Setting PYTHONUNBUFFERED forces print() to flush even if stdout is not a TTY.
ENV PYTHONUNBUFFERED=1
CMD ["./compiler.sh", "serve", "--host=0.0.0.0"]