cloudron/cloudron-headscale/Dockerfile

20 lines
585 B
Docker
Raw Permalink Normal View History

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