-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (23 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM alpine:3.11.6 as builder
WORKDIR /app
ADD https://github.com/snail007/goproxy/releases/download/v9.5/proxy-linux-amd64.tar.gz /tmp/goproxy.tar.gz
ADD https://github.com/txthinking/brook/releases/download/v20200502/brook_linux_amd64 /app/brook/brook
ADD https://github.com/fatedier/frp/releases/download/v0.33.0/frp_0.33.0_linux_amd64.tar.gz /tmp/frp.tar.gz
RUN mkdir /app/goproxy
RUN mkdir /app/frp
RUN tar -zxf /tmp/goproxy.tar.gz -C /app/goproxy
RUN tar -zxf /tmp/frp.tar.gz -C /app/frp --strip-components 1
RUN chmod 755 /app/brook/brook
FROM alpine:3.11.6
LABEL maintainer="Ztj <[email protected]>"
RUN apk add --no-cache supervisor
RUN /usr/bin/echo_supervisord_conf > /etc/supervisord.conf
RUN mkdir /etc/supervisor.d
RUN mkdir /var/log/supervisor
RUN sed -i 's/;\[inet_http_server]/\[inet_http_server]/g' /etc/supervisord.conf
RUN sed -i 's/;port=127.0.0.1:9001/port=0.0.0.0:9999/g' /etc/supervisord.conf
COPY --from=builder /app /app
COPY ./supervisor.d /etc/supervisor.d
COPY ./conf /app/conf
WORKDIR /app
RUN supervisord --nodaemon