update dockerfile
This commit is contained in:
parent
b3d8886096
commit
4e9878e2d9
2 changed files with 6 additions and 4 deletions
|
|
@ -3,11 +3,11 @@ FROM ubuntu:22.04 AS base
|
||||||
SHELL ["/bin/sh", "-x", "-c"]
|
SHELL ["/bin/sh", "-x", "-c"]
|
||||||
ENV SERIAL 2
|
ENV SERIAL 2
|
||||||
|
|
||||||
|
########################################
|
||||||
FROM base as builder
|
FROM base as builder
|
||||||
|
|
||||||
ENV CFLAGS=-Ofast
|
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
|
WORKDIR /tmp
|
||||||
|
|
||||||
|
|
@ -24,13 +24,15 @@ RUN apt-get update && apt-get install -qy --no-install-recommends $BUILD_DEPS &&
|
||||||
cargo build --release && \
|
cargo build --release && \
|
||||||
strip --strip-all /tmp/target/release/rpxy
|
strip --strip-all /tmp/target/release/rpxy
|
||||||
|
|
||||||
|
########################################
|
||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
LABEL maintainer="Jun Kurihara"
|
LABEL maintainer="Jun Kurihara"
|
||||||
|
|
||||||
ENV RUNTIME_DEPS bash logrotate
|
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 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 &&\
|
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 /opt/rpxy/sbin &&\
|
||||||
mkdir -p /var/log/rpxy && \
|
mkdir -p /var/log/rpxy && \
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ reverse_proxy = [{ upstream = [{ location = 'www.google.com', tls = true }] }]
|
||||||
[experimental]
|
[experimental]
|
||||||
ignore_sni_consistency = false # Higly recommend not to be true. If true, you ignore RFC. if not specified, it is always false.
|
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
|
alt_svc_max_age = 3600 # sec
|
||||||
request_max_body_size = 65536 # bytes
|
request_max_body_size = 65536 # bytes
|
||||||
max_concurrent_connections = 10000
|
max_concurrent_connections = 10000
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue