mirror of https://github.com/SUNET/invent.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
434 B
14 lines
434 B
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 ./templates ./templates/
|
|
COPY ./requirements.txt .
|
|
RUN pip install --no-cache-dir --requirement requirements.txt
|
|
EXPOSE 8000/tcp
|
|
CMD [ ".local/bin/uvicorn", "--host", "0.0.0.0", "main:app" ]
|