Speed up heroku deployment

This commit is contained in:
supershadoe 2022-07-14 09:23:45 +05:30
parent 88bed73e5e
commit 86f2533630
No known key found for this signature in database
GPG Key ID: 78D9A759CF62C954
3 changed files with 21 additions and 11 deletions

4
Dockerfile.fromimage Normal file
View File

@ -0,0 +1,4 @@
FROM spikecodes/libreddit:latest
# Exposing port 8080 only for local testing
EXPOSE 8080
CMD ["libreddit"]

View File

@ -1,44 +1,50 @@
{
"name": "Libreddit",
"description": "Private front-end for Reddit",
"buildpacks": [
{
"url": "https://github.com/emk/heroku-buildpack-rust"
},
{
"url": "emk/rust"
}
],
"stack": "container",
"env": {
"LIBREDDIT_DEFAULT_THEME": {
"value": "system",
"required": false
},
"LIBREDDIT_DEFAULT_FRONT_PAGE": {
"value": "default",
"required": false
},
"LIBREDDIT_DEFAULT_LAYOUT": {
"value": "card",
"required": false
},
"LIBREDDIT_DEFAULT_WIDE": {
"value": "off",
"required": false
},
"LIBREDDIT_DEFAULT_COMMENT_SORT": {
"value": "confidence",
"required": false
},
"LIBREDDIT_DEFAULT_POST_SORT": {
"value": "hot",
"required": false
},
"LIBREDDIT_DEFAULT_SHOW_NSFW": {
"value": "off",
"required": false
},
"LIBREDDIT_DEFAULT_BLUR_NSFW": {
"value": "off",
"required": false
},
"LIBREDDIT_USE_HLS": {
"LIBREDDIT_DEFAULT_USE_HLS": {
"value": "off",
"required": false
},
"LIBREDDIT_HIDE_HLS_NOTIFICATION": {
"LIBREDDIT_DEFAULT_HIDE_HLS_NOTIFICATION": {
"value": "off",
"required": false
},
"LIBREDDIT_DEFAULT_AUTOPLAY_VIDEOS": {
"value": "off",
"required": false
}
}

View File

@ -1,3 +1,3 @@
build:
docker:
web: Dockerfile
web: Dockerfile.fromimage