This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
522 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM debian:buster-slim | ||
|
||
MAINTAINER Johannes Kreutz <[email protected]> | ||
|
||
ENV VERSION "1" | ||
|
||
USER root | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends nginx php-fpm php-mysql wakeonlan | ||
|
||
COPY client.php /var/www/html/ | ||
COPY register.php /var/www/html/ | ||
COPY default /etc/nginx/sites-enabled/ | ||
|
||
RUN mkdir /etc/clientapi | ||
|
||
RUN echo "www-data ALL=NOPASSWD: /usr/bin/wakeonlan" >> /etc/sudoers | ||
|
||
EXPOSE 443 | ||
|
||
COPY entrypoint.sh / | ||
RUN chmod +x /entrypoint.sh | ||
|
||
CMD ["./entrypoint.sh"] |
Oops, something went wrong.