add workflow for building containers

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

13
backend/Dockerfile-x86_64 Normal file
View File

@@ -0,0 +1,13 @@
FROM alpine:latest 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"]