File size: 670 Bytes
213c13f
526ad23
663cafa
 
 
 
 
 
213c13f
526ad23
 
 
8fc48d7
a2cc8e8
526ad23
 
 
 
 
f84bf73
 
 
526ad23
 
 
 
f84bf73
 
 
 
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
FROM ubuntu:latest

RUN apt-get update && \
    apt-get install -y software-properties-common && \
    apt-add-repository ppa:i2p-maintainers/i2p && \
    apt-get update && \
    apt-get install -y git golang-go build-essential i2p socat
    
RUN mkdir -p /app/t

WORKDIR /app

RUN git clone https://git.zx2c4.com/wireguard-go ./* 
RUN cp -r ./t/* . && \
    go build -o /usr/local/bin/wireguard-go

COPY wg0.conf.template /app/wg0.conf.template
COPY entrypoint.sh /app/entrypoint.sh

RUN chmod +x /app/entrypoint.sh
RUN chmod -R 777 /app
RUN chmod 777 /app/entrypoint.sh

EXPOSE 57777/udp
EXPOSE 7860/tcp

RUN useradd -m appuser
USER appuser

CMD ["/app/entrypoint.sh"]