-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
40 lines (29 loc) · 927 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# __ _
# \/imana 2016
# [|-ramewørk
#
#
# Author: s4dhu
# Email: <s4dhul4bs[at]prontonmail[dot]ch
# Git: @s4dhulabs
# Mastodon: @s4dhu
#
# This file is part of Vimana Framework Project.
FROM python:3.9-slim-buster
LABEL MAINTAINER="s4dhu <s4dhul4bs[dot]protonmail[at]ch>"
MAINTAINER s4dhu <s4dhul4bs[at]protonmail[dot]ch>
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /vf0.8
COPY . /vf0.8
RUN python3.9 -m pip install --user --no-cache-dir --upgrade pip && \
python3.9 -m pip install --user --no-cache-dir -r requirements.txt && \
python3.9 -m pip install --user --no-cache-dir -U PyYAML
RUN groupadd -r vimana && \
useradd -r -m -g vimana -G sudo oper && \
chown -R oper:vimana /vf0.8/core/_dbops_/ && \
chmod -R 750 /vf0.8/core/_dbops_/
ENV PYTHONWARNINGS=ignore
ENV PATH="/vf0.8:${PATH}"
RUN ln -s /vf0.8/vimana.py /usr/bin/vimana
CMD ["vimana", "load", "--plugins"]
ENTRYPOINT ["vimana"]