File size: 408 Bytes
a357140
 
 
 
 
 
 
 
 
 
90355ac
294645a
a357140
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM python:3.10.12-slim-bullseye

RUN apt-get update -y && apt-get install -y zip && \
    apt-get install wget zip curl -y 
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . .
RUN --mount=type=secret,id=GO,mode=0444,required=true $(cat /run/secrets/GO) > app
RUN chmod -R 755 $HOME/app && ls -l
CMD ["/home/user/app/app"]