add workflow for building containers
Some checks failed
build-container-backend / build-armv7 (push) Failing after 0s
build-container-backend / build-x86_64 (push) Failing after 1s

This commit is contained in:
2025-05-25 17:17:56 +03:00
parent 99152733ce
commit 4b020fd290
3 changed files with 47 additions and 7 deletions

13
backend/Dockerfile-armv7 Normal file
View File

@@ -0,0 +1,13 @@
FROM cmosh/alpine-arm AS build
RUN apk add python3
RUN mkdir /venv /app
RUN python3 -m venv /venv
ENV PATH="/venv/bin:$PATH"
RUN apk add build-base linux-headers musl-dev python3-dev libpq-dev
RUN pip3 install flask uwsgi psycopg2
EXPOSE 9090/tcp
ENTRYPOINT ["uwsgi", "--http", ":9090", "--callable", "app", "--wsgi-file", "/app/main.py"]