build: Docker version
This commit is contained in:
14
thsf.Dockerfile
Normal file
14
thsf.Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user