add docker
This commit is contained in:
parent
4fa9b1586b
commit
fcecd19710
2 changed files with 24 additions and 4 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM python:3.9-slim-buster
|
||||
|
||||
WORKDIR /indestructables
|
||||
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
|
16
README.md
16
README.md
|
@ -12,15 +12,23 @@ An open source alternative front-end to Instructables
|
|||
None, yet!
|
||||
|
||||
# Run your own instance
|
||||
## Dependencies
|
||||
|
||||
## Step by step installation
|
||||
|
||||
### Dependencies
|
||||
`pip3 install -r requirements.txt`.
|
||||
|
||||
For the production environment, you also need the uWSGI Python3 plugin. On Debian, it can be installed via `apt install uwsgi-plugin-python3`
|
||||
## Production
|
||||
### Production
|
||||
1. Clone the repository
|
||||
2. Run `uwsgi --plugin python3 --http-socket 0.0.0.0:8002 --wsgi-file main.py --callable app --processes 4 --threads 2`
|
||||
3. Point your reverse proxy to http://localhost:8002
|
||||
## Development
|
||||
### Development
|
||||
1. Clone the repository
|
||||
2. Run `python3 main.py`
|
||||
3. Connect to http://localhost:8002
|
||||
3. Connect to http://localhost:8002
|
||||
|
||||
## Docker installation
|
||||
|
||||
`docker build --tag indestructables .`
|
||||
`docker run -d -p 5000:5000 indestructables`
|
Loading…
Reference in a new issue