add workflow for building containers
This commit is contained in:
13
backend/Dockerfile-x86_64
Normal file
13
backend/Dockerfile-x86_64
Normal 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"]
|
||||
Reference in New Issue
Block a user