update dockerfile

This commit is contained in:
Jun Kurihara 2022-07-23 01:15:20 +09:00
commit 4e9878e2d9
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
2 changed files with 6 additions and 4 deletions

View file

@ -3,11 +3,11 @@ FROM ubuntu:22.04 AS base
SHELL ["/bin/sh", "-x", "-c"]
ENV SERIAL 2
########################################
FROM base as builder
ENV CFLAGS=-Ofast
ENV BUILD_DEPS curl make build-essential libevent-dev libexpat1-dev autoconf file libssl-dev byacc pkg-config ca-certificates
ENV BUILD_DEPS curl make ca-certificates build-essential
WORKDIR /tmp
@ -24,13 +24,15 @@ RUN apt-get update && apt-get install -qy --no-install-recommends $BUILD_DEPS &&
cargo build --release && \
strip --strip-all /tmp/target/release/rpxy
########################################
FROM base AS runner
LABEL maintainer="Jun Kurihara"
ENV RUNTIME_DEPS bash logrotate
RUN apt-get update; apt-get -qy dist-upgrade; apt-get -qy clean && \
RUN apt-get update && \
apt-get install -qy --no-install-recommends $RUNTIME_DEPS && \
apt-get -qy clean && \
rm -fr /tmp/* /var/tmp/* /var/cache/apt/* /var/lib/apt/lists/* /var/log/apt/* /var/log/*.log &&\
mkdir -p /opt/rpxy/sbin &&\
mkdir -p /var/log/rpxy && \

View file

@ -69,7 +69,7 @@ reverse_proxy = [{ upstream = [{ location = 'www.google.com', tls = true }] }]
[experimental]
ignore_sni_consistency = false # Higly recommend not to be true. If true, you ignore RFC. if not specified, it is always false.
[experimenta.h3] # If this specified, h3 is enabled
[experimental.h3] # If this specified, h3 is enabled
alt_svc_max_age = 3600 # sec
request_max_body_size = 65536 # bytes
max_concurrent_connections = 10000