accplan commited on
Commit
3c8fb5a
·
1 Parent(s): 7dca0de
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -5,22 +5,22 @@ FROM gcc:12.2.0 as builder
5
  ARG Z3PROXY_VERSION=0.9.4
6
 
7
  # Fetch 3proxy sources
8
- RUN set -x \
9
- && git -c advice.detachedHead=false clone --depth 1 --branch "${Z3PROXY_VERSION}" https://github.com/z3APA3A/3proxy.git /tmp/3proxy
10
 
11
  WORKDIR /tmp/3proxy
12
 
13
  # Patch sources
14
- RUN set -x \
15
- && echo '#define ANONYMOUS 1' >> ./src/3proxy.h \
16
  # proxy.c source: <https://github.com/z3APA3A/3proxy/blob/0.9.3/src/proxy.c>
17
- && sed -i 's~\(<\/head>\)~<style>:root{--color-bg-primary:#fff;--color-text-primary:#131313;--color-text-secondary:#232323}\
18
  @media (prefers-color-scheme: dark){:root{--color-bg-primary:#212121;--color-text-primary:#fafafa;--color-text-secondary:#bbb}}\
19
  html,body{height:100%;font-family:sans-serif;background-color:var(--color-bg-primary);color:var(--color-text-primary);margin:0;\
20
  padding:0;text-align:center}body{align-items:center;display:flex;justify-content:center;flex-direction:column;height:100vh}\
21
  h1,h2{margin-bottom:0;font-size:2.5em}h2::before{content:'"'"'Proxy error'"'"';display:block;font-size:.4em;\
22
- color:var(--color-text-secondary);font-weight:100}h3,p{color:var(--color-text-secondary)}</style>\1~' ./src/proxy.c \
23
- && cat ./src/proxy.c | grep '</head>'
24
 
25
  # And compile
26
  RUN set -x \
 
5
  ARG Z3PROXY_VERSION=0.9.4
6
 
7
  # Fetch 3proxy sources
8
+ RUN set -x && \
9
+ git -c advice.detachedHead=false clone --depth 1 --branch "${Z3PROXY_VERSION}" https://github.com/z3APA3A/3proxy.git /tmp/3proxy
10
 
11
  WORKDIR /tmp/3proxy
12
 
13
  # Patch sources
14
+ RUN set -x && \
15
+ echo '#define ANONYMOUS 1' >> ./src/3proxy.h && \
16
  # proxy.c source: <https://github.com/z3APA3A/3proxy/blob/0.9.3/src/proxy.c>
17
+ sed -i 's~\(<\/head>\)~<style>:root{--color-bg-primary:#fff;--color-text-primary:#131313;--color-text-secondary:#232323}\
18
  @media (prefers-color-scheme: dark){:root{--color-bg-primary:#212121;--color-text-primary:#fafafa;--color-text-secondary:#bbb}}\
19
  html,body{height:100%;font-family:sans-serif;background-color:var(--color-bg-primary);color:var(--color-text-primary);margin:0;\
20
  padding:0;text-align:center}body{align-items:center;display:flex;justify-content:center;flex-direction:column;height:100vh}\
21
  h1,h2{margin-bottom:0;font-size:2.5em}h2::before{content:'"'"'Proxy error'"'"';display:block;font-size:.4em;\
22
+ color:var(--color-text-secondary);font-weight:100}h3,p{color:var(--color-text-secondary)}</style>\1~' ./src/proxy.c && \
23
+ cat ./src/proxy.c | grep '</head>'
24
 
25
  # And compile
26
  RUN set -x \