cloudron/cloudron-headscale/Dockerfile
Jacob Kiers 80cd767e4a Initial commit
Signed-off-by: Jacob Kiers <code@kiers.eu>
2023-02-15 23:52:17 +01:00

20 lines
585 B
Docker

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" ]