Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -16
Dockerfile
CHANGED
@@ -2,32 +2,26 @@ FROM python:3.9-slim
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
-
# Set
|
6 |
ENV TZ=Europe/Paris
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
11 |
|
12 |
-
RUN apt-get update && apt-get install -y \
|
13 |
-
build-essential \
|
14 |
-
curl \
|
15 |
-
software-properties-common \
|
16 |
-
git \
|
17 |
&& rm -rf /var/lib/apt/lists/*
|
18 |
|
19 |
COPY requirements.txt ./
|
20 |
-
|
21 |
|
22 |
-
|
23 |
|
24 |
-
EXPOSE
|
25 |
|
26 |
ENV HOME=/app
|
27 |
|
28 |
-
#
|
29 |
RUN mkdir -p /app/submissions
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
ENTRYPOINT ["panel", "serve", "src/streamlit_app.py", "--address=0.0.0.0", "--port=8501"]
|
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
# Set timezone if needed
|
6 |
ENV TZ=Europe/Paris
|
7 |
|
8 |
+
RUN apt-get update && apt-get install -y tzdata \
|
9 |
+
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
10 |
|
11 |
+
RUN apt-get update && apt-get install -y build-essential curl git \
|
|
|
|
|
|
|
|
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
|
14 |
COPY requirements.txt ./
|
15 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
+
COPY src/ ./src/
|
18 |
|
19 |
+
EXPOSE 7860
|
20 |
|
21 |
ENV HOME=/app
|
22 |
|
23 |
+
# Make sure your app directory exists (optional)
|
24 |
RUN mkdir -p /app/submissions
|
25 |
|
26 |
+
# Entry point to run your gradio app script
|
27 |
+
ENTRYPOINT ["python", "src/your_gradio_script.py"]
|
|