Merge pull request 'Simplify Dockerfile, Add More Details to Installation Instructions' (#60) from amrw/teddit:simplify-dockerfile into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/60
This commit is contained in:
commit
63c5435e20
10
Dockerfile
10
Dockerfile
|
@ -1,15 +1,13 @@
|
|||
# Use LTS nodejs base image
|
||||
# Use LTS Node.js base image
|
||||
FROM node:14.15.1-alpine
|
||||
|
||||
# video support dependency
|
||||
# Video support dependency
|
||||
RUN apk add ffmpeg
|
||||
|
||||
# install npm dependencies and copy project
|
||||
# Install NPM dependencies and copy the project
|
||||
WORKDIR /teddit
|
||||
COPY package.json /teddit/
|
||||
COPY package-lock.json /teddit/
|
||||
COPY . /teddit/
|
||||
RUN npm install --no-optional
|
||||
COPY config.js.template /teddit/config.js
|
||||
COPY . /teddit/
|
||||
|
||||
CMD npm start
|
||||
|
|
44
README.md
44
README.md
|
@ -1,9 +1,7 @@
|
|||
# teddit
|
||||
|
||||
|
||||
[teddit.net](https://teddit.net)
|
||||
|
||||
|
||||
A free and open source alternative Reddit front-end focused on privacy.
|
||||
Inspired by the [Nitter](https://github.com/zedeus/nitter) project.
|
||||
|
||||
|
@ -50,23 +48,41 @@ Community instances:
|
|||
|
||||
### Docker
|
||||
|
||||
Using [`docker-compose`](https://github.com/docker/compose):
|
||||
```bash
|
||||
Using [Docker and `docker-compose`](https://github.com/docker/compose):
|
||||
|
||||
```console
|
||||
docker-compose build
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
Teddit should now be running at <https://localhost:8080>.
|
||||
|
||||
### Manual
|
||||
|
||||
1. Install [node.js](https://nodejs.org/en/)
|
||||
1. It's highly recommended that you install [redis-server](https://redis.io/) because it works as a cache for Reddit API calls. If you want to support videos, install [ffmpeg](https://ffmpeg.org/)\
|
||||
For example:\
|
||||
`# apt install redis-server ffmpeg`
|
||||
1. `$ git clone https://codeberg.org/teddit/teddit`
|
||||
1. `$ cd teddit`
|
||||
1. `$ npm install --no-optional`
|
||||
1. Copy `config.js.template` to `config.js` and then edit it to suit your environment.
|
||||
1. `$ npm start`
|
||||
1. Install [Node.js](https://nodejs.org).
|
||||
1. (Optional) Install [redis-server](https://redis.io).
|
||||
|
||||
Teddit should be now running.
|
||||
Highly recommended – it works as a cache for Reddit API calls.
|
||||
|
||||
1. (Optional) If you want to support videos, install [ffmpeg](https://ffmpeg.org)
|
||||
|
||||
```console
|
||||
# Linux
|
||||
apt install redis-server ffmpeg
|
||||
|
||||
# macOS
|
||||
brew install redis
|
||||
```
|
||||
|
||||
1. Clone and set up the repository.
|
||||
|
||||
```console
|
||||
git clone https://codeberg.org/teddit/teddit
|
||||
cd teddit
|
||||
npm install --no-optional
|
||||
cp config.js.template config.js # edit the file to suit your environment
|
||||
redis-server
|
||||
npm start
|
||||
```
|
||||
|
||||
Teddit should now be running at <https://localhost:8080>.
|
||||
|
|
Loading…
Reference in New Issue