mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
Merge pull request #1147 from mrled/set-app-permissions-dockerfile
This commit is contained in:
commit
081ba7e81b
2 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,7 @@ RUN apt-get update -qq \
|
||||||
# Install ArchiveBox Python package and its dependencies
|
# Install ArchiveBox Python package and its dependencies
|
||||||
WORKDIR "$CODE_DIR"
|
WORKDIR "$CODE_DIR"
|
||||||
ADD . "$CODE_DIR"
|
ADD . "$CODE_DIR"
|
||||||
RUN pip install -e .
|
RUN chown -R root:root . && chmod a+rX -R . && pip install -e .
|
||||||
|
|
||||||
# Setup ArchiveBox runtime config
|
# Setup ArchiveBox runtime config
|
||||||
WORKDIR "$DATA_DIR"
|
WORKDIR "$DATA_DIR"
|
||||||
|
|
|
@ -913,6 +913,7 @@ docker run -it -p 8000:8000 \
|
||||||
archivebox server 0.0.0.0:8000 --debug --reload
|
archivebox server 0.0.0.0:8000 --debug --reload
|
||||||
|
|
||||||
# (remove the --reload flag and add the --nothreading flag when profiling with the django debug toolbar)
|
# (remove the --reload flag and add the --nothreading flag when profiling with the django debug toolbar)
|
||||||
|
# When using --reload, make sure any files you create can be read by the user in the Docker container, eg with 'chmod a+rX'.
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue