modular parser framework
This commit is contained in:
+3
-3
@@ -1,4 +1,4 @@
|
||||
ARG DEPLOY_DIR=/opt/om-parser-stw-potsdam-v2
|
||||
ARG DEPLOY_DIR=/opt/openmensa-parsers
|
||||
ARG USERNAME=flaskd
|
||||
ARG LISTEN_PORT=3080
|
||||
|
||||
@@ -24,7 +24,7 @@ ENV PIPENV_VENV_IN_PROJECT=1
|
||||
WORKDIR ${DEPLOY_DIR}
|
||||
|
||||
# Copy app folder contents
|
||||
COPY stw_potsdam/ ./stw_potsdam
|
||||
COPY openmensa_parsers/ ./openmensa_parsers
|
||||
COPY tests ./tests
|
||||
COPY Makefile .
|
||||
COPY README.md .
|
||||
@@ -83,6 +83,6 @@ ENV LISTEN_PORT=${LISTEN_PORT}
|
||||
ENV LISTEN=0.0.0.0:${LISTEN_PORT}
|
||||
|
||||
EXPOSE ${LISTEN_PORT}
|
||||
CMD ["sh", "-c", "uv run uwsgi --master --http11-socket \"$LISTEN\" --plugins python --protocol uwsgi --wsgi stw_potsdam.views:app --virtualenv ./.venv"]
|
||||
CMD ["sh", "-c", "uv run uwsgi --master --http11-socket \"$LISTEN\" --plugins python --protocol uwsgi --wsgi openmensa_parsers.views:app --virtualenv ./.venv"]
|
||||
|
||||
HEALTHCHECK --interval=15s --timeout=3s CMD curl -f http://127.0.0.1:$LISTEN_PORT/health_check || exit 1
|
||||
|
||||
Reference in New Issue
Block a user