mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-23 16:05:51 +00:00
* Add #102 link in README * Migrating to tokio, #100 * Migrated to tokio-signal v0.2, reformatted * Should not call tokio::spawn before tokio::run * Build nightly and stable with different image tag * Removed unnecessary rustup install * Renamed version to v1.7.0-alpha * Removed deprecated calls of Buf * Updated dependencies * [#106] Fixed bug, should not hold UDP connections forever * Lower info log to debug * Bump version to v1.7.0-alpha.2 * Implement a simple DNS relay server, bump version to v1.7.0-alpha.3 * Better logging * Fixed build on travis * Add elapsed time in log * Should not exit if handler return error * reformatted * Add test for DNS * Updated ssdns param * Use `trust-dns` and impl Trait 1. Replaced `ToSocketAddrs` with `trust-dns` 2. Uses impl Trait for functions 3. Updated dependencies 4. Fixed bugs * Bug fixed, logging crate in ssdns
16 lines
554 B
Docker
16 lines
554 B
Docker
ARG TOOLCHAIN=stable
|
|
FROM ekidd/rust-musl-builder:$TOOLCHAIN
|
|
|
|
ENV SODIUM_VERS="1.0.16"
|
|
|
|
# Build a static copy of libsodium.
|
|
RUN cd /home/rust/libs && \
|
|
curl -LO https://download.libsodium.org/libsodium/releases/libsodium-$SODIUM_VERS.tar.gz && \
|
|
tar xzf libsodium-$SODIUM_VERS.tar.gz && cd libsodium-$SODIUM_VERS && \
|
|
CC=musl-gcc ./configure --prefix=/usr/local/musl && \
|
|
make && sudo make install && \
|
|
cd .. && rm -rf libsodium-$SODIUM_VERS.tar.gz libsodium-$SODIUM_VERS
|
|
|
|
ENV SODIUM_STATIC=yes
|
|
ENV SODIUM_LIB_DIR=/usr/local/musl/lib
|