Spaces:
Runtime error
Runtime error
Commit ·
cb6c4d0
1
Parent(s): bb8054e
updated the dockerfile
Browse files
Dockerfile
CHANGED
|
@@ -1,10 +1,25 @@
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
-
|
|
|
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
COPY . .
|
|
@@ -12,5 +27,11 @@ COPY . .
|
|
| 12 |
RUN python manage.py makemigrations
|
| 13 |
RUN python manage.py migrate
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
+
# Set up a new user named "user" with user ID 1000
|
| 4 |
+
RUN useradd -m -u 1000 user
|
| 5 |
|
| 6 |
+
# Switch to the "user" user
|
| 7 |
+
USER user
|
| 8 |
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
# Set home to the user's home directory
|
| 12 |
+
ENV HOME=/home/user \
|
| 13 |
+
PATH=/home/user/.local/bin:$PATH
|
| 14 |
+
|
| 15 |
+
# Set the working directory to the user's home directory
|
| 16 |
+
WORKDIR $HOME/app
|
| 17 |
+
COPY --chown=user . $HOME/app
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
COPY ./requirements.txt requirements.txt
|
| 21 |
+
|
| 22 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 23 |
|
| 24 |
|
| 25 |
COPY . .
|
|
|
|
| 27 |
RUN python manage.py makemigrations
|
| 28 |
RUN python manage.py migrate
|
| 29 |
|
| 30 |
+
USER root
|
| 31 |
+
RUN chmod 777 ~/app/*
|
| 32 |
+
USER user
|
| 33 |
+
|
| 34 |
+
EXPOSE 7860 7860
|
| 35 |
+
|
| 36 |
|
| 37 |
CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]
|
scraper/utils/__pycache__/HebScraper.cpython-311.pyc
CHANGED
|
Binary files a/scraper/utils/__pycache__/HebScraper.cpython-311.pyc and b/scraper/utils/__pycache__/HebScraper.cpython-311.pyc differ
|
|
|
scraper/utils/__pycache__/WallmartScraper.cpython-311.pyc
CHANGED
|
Binary files a/scraper/utils/__pycache__/WallmartScraper.cpython-311.pyc and b/scraper/utils/__pycache__/WallmartScraper.cpython-311.pyc differ
|
|
|
shopsscraper/__pycache__/settings.cpython-311.pyc
CHANGED
|
Binary files a/shopsscraper/__pycache__/settings.cpython-311.pyc and b/shopsscraper/__pycache__/settings.cpython-311.pyc differ
|
|
|