heiher / hev-socks5-server

A high-performance socks5 server for Unix (Linux/Android/BSD/macOS)
MIT License
185 stars 33 forks source link

Error build docker #32

Closed HighNetFather closed 9 months ago

HighNetFather commented 1 year ago

Hello! Please help, there is a problem when installing through docker. Operating system Ubuntu 20.04

Dockerfile:13
--------------------
  12 |     # build
  13 | >>> RUN apk update \
  14 | >>>   && apk add --no-cache --virtual .build-deps build-base \
  15 | >>>   && cd /tmp/hev-socks5-server \
  16 | >>>   && make -j$(nproc) \
  17 | >>>   && make install INSTDIR="/app" \
  18 | >>>   && make clean \
  19 | >>>   && cd / \
  20 | >>>   && rm -r /tmp/hev-socks5-server \
  21 | >>>   && apk del .build-deps \
  22 | >>>   && rm -rf /var/cache/apk/*
  23 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apk update   && apk add --no-cache --virtual .build-deps build-base   && cd /tmp/hev-socks5-server   && make -j$(nproc)   && make install INSTDIR=\"/app\"   && make clean   && cd /   && rm -r /tmp/hev-socks5-server   && apk del .build-deps   && rm -rf /var/cache/apk/*" did not complete successfully: exit code: 2
HighNetFather commented 1 year ago

https://pastebin.com/avxxdxjm - full log

heiher commented 1 year ago

Did you clone with --recursive?

HighNetFather commented 1 year ago

Did you clone with --recursive?

Thank you, that helped. But when connecting, there is no response from the servers. Maybe something needs to be specified in -net ?

docker run -d \
  --name hev-socks5-server \
  --restart always \
  --net host \
  -e PORT=1081 \
  -e AUTH="user:pass" \
  hev-socks5-server