Spaces:
Sleeping
Sleeping
fracapuano
commited on
Commit
•
39a9e66
1
Parent(s):
664ad4d
remove: wrong dockerfile
Browse files- .Dockerfile +0 -34
.Dockerfile
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
# Use an official Python runtime as a base image
|
2 |
-
FROM python:3.12
|
3 |
-
|
4 |
-
# Set the HOME environment variable and make /home directory world-writable
|
5 |
-
ENV HOME=/home
|
6 |
-
RUN mkdir -p $HOME && chmod 777 $HOME
|
7 |
-
|
8 |
-
# Set the working directory in the container
|
9 |
-
WORKDIR /usr/src/app
|
10 |
-
|
11 |
-
# Copy the current directory contents into the container at /usr/src/app
|
12 |
-
COPY pyproject.toml poetry.lock* /usr/src/app/
|
13 |
-
|
14 |
-
# Install Poetry
|
15 |
-
RUN pip install -U pip
|
16 |
-
RUN pip install poetry
|
17 |
-
|
18 |
-
# Configure Poetry: Do not create a virtual environment
|
19 |
-
RUN poetry config virtualenvs.create false
|
20 |
-
|
21 |
-
# Install project dependencies
|
22 |
-
RUN poetry install
|
23 |
-
|
24 |
-
# Copy the rest of your app's source code from your host to your image filesystem.
|
25 |
-
COPY . /usr/src/app
|
26 |
-
|
27 |
-
# This is the port exposed by the container
|
28 |
-
EXPOSE 7860
|
29 |
-
|
30 |
-
# Checking the container is still working
|
31 |
-
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
32 |
-
|
33 |
-
# The command to run the app
|
34 |
-
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|