From 1fa44477ec4794ed80037185fd205cb5edda55ab Mon Sep 17 00:00:00 2001 From: lamacchinadesiderante Date: Thu, 26 Jan 2023 20:47:24 +0100 Subject: [PATCH] first commit --- Dockerfile | 13 +++++++++++++ README.md | 26 +++++++++++++------------- docker-compose.yml | 11 +++++++++++ server.lua | 2 +- start.sh | 3 +++ 5 files changed, 41 insertions(+), 14 deletions(-) create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100755 start.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..98148e5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM woahbase/alpine-lua:latest + +COPY . . + +RUN apk update \ + && apk add wget \ + lua \ + lua-socket + +ADD start.sh / +RUN ["chmod", "+x", "/start.sh"] + +ENTRYPOINT ["/start.sh"] \ No newline at end of file diff --git a/README.md b/README.md index c2a6314..abba802 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ -# porninvidious +# PornInvidious -requires: `wget`, `lua`, `luasocket`, a posix shell +This is a fork from the original PornInvidious project: +`https://codeberg.org/SimpleWeb/PornInvidious` + +I just added a Dockerfile ad a docker-compose to make install process easier. + +# Requirements + +docker and docker-compose + +# How to run locally -# how to use ``` -lua server.lua -``` -go to `http://127.0.0.1:8069` (https doesn't work) - - - -optionally pass ip and port as arguments -``` -lua server.lua -i 0.0.0.0 -p 80 +docker-compose up -d ``` -The code of the inital commit of this repository was made by [acz](https://acz.kalli.st) +go to `http://127.0.0.1:8069` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c11e308 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3' + +services: + porninvidious: + + image: porninvidious:latest + + restart: always + + ports: + - "8069:3000" \ No newline at end of file diff --git a/server.lua b/server.lua index 9510db6..c585cb3 100644 --- a/server.lua +++ b/server.lua @@ -1,7 +1,7 @@ local socket = require("socket") local ip = '127.0.0.1' -local port = '8069' +local port = '3000' if #arg > 0 then local i = 1 diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..82af2c2 --- /dev/null +++ b/start.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +lua server.lua -i 0.0.0.0 -p 3000 \ No newline at end of file