Spaces:
Running
Running
FROM python:3.11 | |
WORKDIR /app | |
RUN apt update && apt upgrade -y | |
RUN apt install unzip | |
RUN useradd --home-dir /app --shell /bin/sh user0 \ | |
&& chown -R user0:user0 . | |
RUN pip install Flask \ | |
# Remove temporary files | |
&& rm -rf /root/.cache | |
USER user0 | |
COPY 1.zip . | |
RUN unzip 1.zip | |
COPY main.py . | |
EXPOSE 8088 | |
CMD ["python3","main.py"] | |