Skip to content

Commit 85034d7

Browse files
committed
add railway
1 parent 1976751 commit 85034d7

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ghcr.io/go-rod/rod:v0.116.0
2+
3+
ENV TZ=Asia/Shanghai
4+
5+
RUN curl https://wechat2rss.xlab.app/release/server -o server \
6+
&& chmod +x /server
7+
8+
WORKDIR /wechat2rss
9+
CMD ["/server"]
10+
11+
EXPOSE 8080

railway.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://railway.app/railway.schema.json",
3+
"build": {
4+
"watchPatterns": [
5+
"/deploy/changelog.md"
6+
]
7+
},
8+
"deploy": {
9+
"restartPolicyType": "ON_FAILURE",
10+
"restartPolicyMaxRetries": 5
11+
}
12+
}

script/start.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)