Initial commit

Signed-off-by: Jacob Kiers <code@kiers.eu>
This commit is contained in:
2023-02-15 23:52:17 +01:00
commit 80cd767e4a
8 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
FROM cloudron/base:4.0.0@sha256:31b195ed0662bdb06a6e8a5ddbedb6f191ce92e8bee04c03fb02dd4e9d0286df
ENV HS_VERSION 0.20.0
EXPOSE 8000
RUN curl --proto '=https' --tlsv1.2 -sSfL \
https://github.com/juanfont/headscale/releases/download/v${HS_VERSION}/headscale_${HS_VERSION}_linux_amd64 \
-o /bin/headscale \
&& chmod +x /bin/headscale
RUN sed -e 's,^logfile=.*$,logfile=/run/supervisord.log,' -i /etc/supervisor/supervisord.conf
COPY supervisor-headscale-server.conf /etc/supervisor/conf.d/
COPY start.sh /app/pkg/
WORKDIR /app/data
CMD [ "/app/pkg/start.sh" ]