Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM alpine:latest
|
2 |
+
|
3 |
+
RUN apk add --no-cache git go build-base i2p openrc socat
|
4 |
+
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
RUN git clone https://git.zx2c4.com/wireguard-go . && \
|
8 |
+
go build -o /usr/local/bin/wireguard-go
|
9 |
+
|
10 |
+
RUN adduser -D appuser
|
11 |
+
USER appuser
|
12 |
+
|
13 |
+
COPY wg0.conf.template /app/wg0.conf.template
|
14 |
+
COPY entrypoint.sh /app/entrypoint.sh
|
15 |
+
|
16 |
+
RUN chmod +x /app/entrypoint.sh
|
17 |
+
|
18 |
+
EXPOSE 57777/udp
|
19 |
+
EXPOSE 7860/tcp
|
20 |
+
|
21 |
+
CMD ["/app/entrypoint.sh"]
|