Rouji / single_php_filehost

Simple Filehosting Page in a Single PHP File (obvious 0x0 clone)
ISC License
238 stars 31 forks source link

Added configuration for Docker #12

Closed MuratovAS closed 2 years ago

MuratovAS commented 2 years ago

I added the ability to deploy a container with your application. How to work with it is written in the readme

I checked the work on arm64 and amd64, I think there will be no problems on other platforms. Thanks to self-assembly of the container

Rouji commented 2 years ago

Hi! I'd like to keep this repository's contents as KISS and true to its name as possible. There is another repository with a PoC docker config here, and I'm thinking I'd like to keep it separate in the future as well. I'd wouldn't mind PRs against that repo though. It could really do with some more effort put into it :upside_down_face:

I have a few comments anyway:

MuratovAS commented 2 years ago

You understood. I did not know that there is already a container implementation :) I think you need to add a link to the Docker configuration.

Your recommendations were useful to me. Thank you. If possible, corrected flaws. I think my configuration has the right to existence, it is a bit more compact. So it can be found in my repository.

Rouji commented 2 years ago

Feel free to contribute to my docker repository. It's not yet mentioned in the readme, because it's a PoC I threw together in like 1 afternoon and I don't use docker to host this myself. If it got a bit more mature(?), I'd link it.

Btw. getting rid of the php config and using sed instead is a good call, but you're still hard-coding config values. I get around that by using a shell script as an entry point: https://github.com/Rouji/single_php_filehost_docker/blob/master/entry.sh