PdfViewer / Dockerfile
zhou12189108's picture
Update Dockerfile
cb61535 verified
raw
history blame contribute delete
341 Bytes
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"]