deployment
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-01-27 18:35:04 +01:00
parent f96da3f8d4
commit ff63d88c04
8 changed files with 130 additions and 23 deletions

View File

@ -1,8 +1,15 @@
FROM python:3.12-alpine3.21
ENV REDIS_URL=""
ENV SECRET_KEY=""
ENV OIDC_CLIENT_SECRETS=""
ENV PGHOST=""
ENV PGDATABASE=""
ENV PGSSLMODE=""
ENV PGUSER=""
ENV PGPASSWORD=""
ARG APP_DIR="/opt/app"
ARG VERSION_ID1="x"
ARG VERSION_ID2="alpha"
COPY ./src/ ${APP_DIR}/
COPY start.sh ${APP_DIR}/
@ -10,12 +17,9 @@ COPY start.sh ${APP_DIR}/
WORKDIR ${APP_DIR}
RUN \
apk add --no-cache build-base libpq-dev npm && \
apk add --no-cache libpq && \
pip install --upgrade pip && \
pip install -r requirements.txt && \
if [ "${VERSION_ID2}" != "" ]; then VERSION_ID=${VERSION_ID2}; else VERSION_ID=${VERSION_ID1}; fi && \
sed -i -e 's/VERSION_ID/'$VERSION_ID'/' ${APP_DIR}/templates/index.html && \
sed -i -e 's/VERSION_ID/'"$VERSION_ID"'/' ${APP_DIR}/templates/nutrition.html
pip install -r requirements.txt
EXPOSE 8080