Skip to content

Commit be08d6d

Browse files
committed
Fix typo in dependencies and Fix Docker
1 parent f6c7976 commit be08d6d

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

Dockerfile

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ WORKDIR /app
55
COPY requirements.txt .
66
RUN pip install --no-cache-dir -r requirements.txt
77

8-
COPY . .
8+
RUN mkdir -p downloads && \
9+
chown -R 1000:1000 /app && \
10+
chmod -R 755 /app && \
11+
chmod 1777 /app/downloads
912

10-
RUN mkdir -p downloads && chmod 777 downloads
13+
COPY . .
1114

12-
RUN useradd -m appuser
15+
RUN useradd -m -u 1000 appuser
1316
USER appuser
1417

1518
EXPOSE 8721
1619

17-
CMD ["gunicorn", "--bind", "0.0.0.0:8721", "--workers", "4", "--timeout", "120", "wsgi:app"]
20+
CMD ["gunicorn", "--bind", "0.0.0.0:8721", "--workers", "4", "--timeout", "300", "--keep-alive", "5", "--worker-class", "gevent", "wsgi:app"]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A web application that scrapes and converts docs.rs documentation into a single
88
git clone https://github.com/toolworks-dev/docsrs-scraper.git
99
cd docsrs-scraper
1010

11-
docker-compose up -d
11+
docker compose up -d
1212

1313
Access the web interface at http://localhost:8721
1414
```

docker-compose.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
version: '3.8'
2-
31
services:
42
docsrsscraper:
53
build: .
4+
user: "1000:1000"
65
ports:
76
- "8721:8721"
87
volumes:

requirements.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
beautifulsoup4==4.12.13
1+
beautifulsoup4==4.12.3
22
Flask==3.1.0
33
gunicorn==23.0.0
4-
requests==2.32.3
4+
requests==2.32.3
5+
gevent==24.11.1

templates/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Docs.rs Scraper</title>
77
<script src="https://cdn.tailwindcss.com"></script>
8-
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
8+
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
9+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
1010
</head>
1111
<body class="bg-gray-100 min-h-screen">
1212
{% raw %}

0 commit comments

Comments
 (0)