Skip to content

Commit 8e8ecc9

Browse files
committed
Move files back to /data
1 parent 0e1b649 commit 8e8ecc9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

FundaScraper/Constants.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ internal static class Constants
44
{
55
internal static class FileNames
66
{
7-
internal static string WebhooksHistoryJson = Path.Combine("/home", "app", "files", "webhooks-history.json");
8-
internal static string ResultsFilePath = Path.Combine("/home", "app", "files", "results.csv");
7+
internal static string WebhooksHistoryJson = Path.Combine("/data", "webhooks-history.json");
8+
internal static string ResultsFilePath = Path.Combine("/data", "results.csv");
99
}
1010
}

FundaScraper/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ RUN apt-get update \
1212

1313
ENV PUPPETEER_EXECUTABLE_PATH "/usr/bin/google-chrome-stable"
1414

15-
RUN apt-get update
16-
RUN apt-get install -y xvfb
15+
RUN mkdir -p /data \
16+
&& chown -R app /data
1717

1818
USER app
1919
WORKDIR /app

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Note `--tty` and `--cap-add=SYS_ADMIN` are required.
2525

2626
```bash
2727
docker run --tty \
28-
-v /data/fundascraper:/home/app/files \
28+
-v /data/fundascraper:/data \
2929
-e FUNDA_URL="https://www.funda.nl/zoeken/koop?selected_area=%5B%22amsterdam%22%5D&object_type=%5B%22house%22%5D&price=%22-450000%22" \
3030
-e WEBHOOK_URL="http://homeassistantlocal.ip/api/webhook/123-redacted-key" \
3131
ghcr.io/marcel0024/funda-scraper:latest
@@ -43,7 +43,7 @@ services:
4343
- FUNDA_URL=https://www.funda.nl/zoeken/koop?selected_area=%5B%22amsterdam%22%5D&object_type=%5B%22house%22%5D&price=%22-450000%22
4444
- WEBHOOK_URL=http://homeassistantlocal.ip/api/webhook/123-redacted-key
4545
volumes:
46-
- /data/fundascraper:/home/app/files
46+
- /data/fundascraper:/data
4747
```
4848
4949
## Environment Variables

0 commit comments

Comments
 (0)