[backend] add basic files for deploying and extending backend operations
This commit is contained in:
20
backend/Dockerfile
Normal file
20
backend/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
|
||||
|
||||
|
||||
#FROM alpine:latest AS prod
|
||||
|
||||
#RUN apk add python3
|
||||
#ENV PATH="/venv/bin:$PATH"
|
||||
#COPY --from=build /venv /venv
|
||||
EXPOSE 9090/tcp
|
||||
|
||||
ENTRYPOINT ["uwsgi", "--http", ":9090", "--callable", "app", "--wsgi-file", "/app/main.py"]
|
||||
Reference in New Issue
Block a user