mirror of https://github.com/SUNET/invent.git
Compare commits
4 Commits
e63f62075b
...
fc4f00a6fb
Author | SHA1 | Date |
---|---|---|
Micke Nordin | fc4f00a6fb | 12 months ago |
Micke Nordin | 00d62ce406 | 12 months ago |
Micke Nordin | f3bcde5ed4 | 12 months ago |
Micke Nordin | 00610748a5 | 12 months ago |
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
environment_variables:
|
||||||
|
INVENT_VERSION: "0.0.1-1"
|
||||||
|
git:
|
||||||
|
branch: main
|
||||||
|
triggers:
|
||||||
|
cron: "@daily"
|
||||||
|
clean_workspace: true
|
||||||
|
builders:
|
||||||
|
- docker
|
||||||
|
docker_context_dir: reciever
|
||||||
|
docker_name: invent/reciever
|
||||||
|
docker_tags:
|
||||||
|
- "${INVENT_VERSION}"
|
||||||
|
- "latest"
|
||||||
|
docker_no_cache: true
|
@ -0,0 +1,12 @@
|
|||||||
|
FROM python:3.11.3-bullseye
|
||||||
|
ENV INVENT_HOST_DIR=/app/hosts
|
||||||
|
ENV INVENT_IMAGE_DIR=/app/images
|
||||||
|
ENV INVENT_DB_DIR=/app/db
|
||||||
|
RUN useradd --system --create-home --home-dir /app --shell /bin/bash invent
|
||||||
|
USER invent
|
||||||
|
WORKDIR /app
|
||||||
|
COPY ./main.py .
|
||||||
|
COPY ./requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir --requirement requirements.txt
|
||||||
|
EXPOSE 8000/tcp
|
||||||
|
CMD [ ".local/bin/uvicorn", "main:app" ]
|
Loading…
Reference in new issue