init
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM debian:stable-slim
|
||||
COPY wstunnel.conf /etc/nginx/conf.d/
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh \
|
||||
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget nginx \
|
||||
&& wget -O /usr/local/bin/wstunnel \
|
||||
https://github.com/erebe/wstunnel/releases/download/v5.0/wstunnel-linux-x64 \
|
||||
&& chmod +x /usr/local/bin/wstunnel \
|
||||
&& rm -vf /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
|
||||
ENV WS_PATH_PREFIX=${WS_PATH_PREFIX:-}
|
||||
ENV SERVER_HOST=${SERVER_HOST:-localhost}
|
||||
ENV SERVER_PORT=${SERVER_PORT:-8080}
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
Reference in New Issue
Block a user