Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
First code upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJKM committed May 22, 2020
1 parent 2ae1a71 commit 9315a1d
Show file tree
Hide file tree
Showing 6 changed files with 522 additions and 0 deletions.
24 changes: 24 additions & 0 deletions clientapi/Dockerfile
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"]
Loading

0 comments on commit 9315a1d

Please sign in to comment.