15 lines
359 B
Text
15 lines
359 B
Text
|
FROM python
|
||
|
|
||
|
LABEL org.opencontainers.image.source https://git.batsense.net/ForgeFlux/nodeinfo-test
|
||
|
|
||
|
RUN useradd -ms /bin/bash -u 1001 nodeinfo
|
||
|
RUN apt-get update && apt-get install -y ca-certificates git
|
||
|
|
||
|
USER nodeinfo
|
||
|
WORKDIR /home/nodeinfo
|
||
|
RUN mkdir app/
|
||
|
WORKDIR /home/nodeinfo/app/
|
||
|
COPY . .
|
||
|
RUN pip install -r requirements.txt
|
||
|
CMD [ "python3", "run.py"]
|