Skip to content

Commit 69caa34

Browse files
add docker
1 parent d7879dd commit 69caa34

File tree

5 files changed

+64
-3
lines changed

5 files changed

+64
-3
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Dockerfile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM node:18.16.0-alpine
2+
3+
RUN mkdir -p /usr/src/app
4+
WORKDIR /usr/src/app
5+
6+
RUN apk update && apk upgrade
7+
RUN apk add git
8+
9+
COPY . /usr/src/app/
10+
RUN npm install -g pnpm
11+
RUN pnpm install
12+
RUN pnpm build
13+
14+
ENV PORT=3000
15+
ENV HOST=0.0.0.0
16+
ENV ENV=development
17+
ENV HTTPS=false
18+
19+
EXPOSE 3000
20+
21+
CMD [ "pnpm", "start" ]

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,35 @@
99

1010
API to render HTML from RSS feed. Built for podcast feeds, powered by [unjs/h3][h3-version-href].
1111

12+
## About
13+
14+
Some podcast services offer a RSS feed with HTML render if RSS feed is requested from a browser. These services (Acast, Ausha) are not open source and not free. This project is an attempt to create an open source alternative.
15+
16+
## Docker
17+
18+
```bash
19+
cp .env.example .env
20+
```
21+
22+
You can use `docker-compose` or `docker` to run the application.
23+
24+
### Docker compose
25+
26+
Docker compose will use the `.env` file to set environment variables.
27+
28+
```bash
29+
docker-compose up -d
30+
```
31+
32+
### Docker image
33+
34+
Build and run the docker image
35+
36+
```bash
37+
docker build -t feed-renderer .
38+
docker run -it -p 3000:3000 feed-renderer
39+
```
40+
1241
## Local
1342

1443
Download dependencies

docker-compose.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
version: "3"
3+
services:
4+
feed_renderer:
5+
container_name: feed_renderer
6+
build:
7+
context: .
8+
dockerfile: Dockerfile
9+
ports:
10+
- "${PORT}:3000"
11+
env_file: .env
12+
restart: always

src/components/feed.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,8 @@ main {
184184
height: 6rem;
185185
width: 6rem;
186186
border-radius: 0.375rem;
187-
/* border: 0.125rem solid #e5e7eb; */
188187
object-fit: cover;
189-
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
190-
0 8px 10px -6px rgb(0 0 0 / 0.1);
188+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
191189
}
192190

193191
.item__title .item__title__text {

0 commit comments

Comments
 (0)