build: Docker version

This commit is contained in:
mco-system
2023-04-22 17:07:56 +11:00
parent db7fcbfc3c
commit 5bd0596281
4 changed files with 51 additions and 14 deletions

14
thsf.Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM python:3.9.16-bullseye as thsf_base
RUN apt-get update -y && \
apt-get install -y bash make python3-pip && \
useradd -m -d /home/thsf -s /bin/bash thsf
from thsf_base as thsf_build
COPY . /home/thsf/
RUN chown -R thsf:thsf /home/thsf/
USER thsf
WORKDIR /home/thsf/
from thsf_build
RUN make install
CMD ["make", "run"]