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"] |