Spaces:
Running
Running
Commit
·
c7a6bb4
1
Parent(s):
70b5c4d
Upload Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11
|
2 |
+
WORKDIR /app
|
3 |
+
RUN apt update && apt upgrade -y
|
4 |
+
RUN apt install unzip
|
5 |
+
RUN useradd --home-dir /app --shell /bin/sh user0 \
|
6 |
+
&& chown -R user0:user0 .
|
7 |
+
RUN pip install Flask \
|
8 |
+
# Remove temporary files
|
9 |
+
&& rm -rf /root/.cache
|
10 |
+
USER user0
|
11 |
+
COPY 1.zip .
|
12 |
+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
13 |
+
CMD ["unzip","1.zip"]
|