s
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
9a38102297
commit
c31d78da1e
14
Dockerfile
14
Dockerfile
|
@ -5,6 +5,9 @@ ENV VERSION=var_VERSION
|
|||
ENV URL https://github.com/XTLS/Xray-core/releases/download/v${VERSION}/Xray-linux-64.zip
|
||||
|
||||
COPY ./run.sh /opt/run.sh
|
||||
COPY ./nginx /opt/nginx
|
||||
COPY ./nginx.conf /opt/nginx.conf
|
||||
COPY ./crontab /var/spool/cron/crontabs/root
|
||||
|
||||
RUN set -xe && \
|
||||
chmod +x /opt/run.sh && \
|
||||
|
@ -20,12 +23,11 @@ RUN set -xe && \
|
|||
wget ${URL} && \
|
||||
unzip Xray-linux-64.zip -d /opt/xray && \
|
||||
rm Xray-linux-64.zip && \
|
||||
apk del unzip wget
|
||||
|
||||
COPY ./nginx.conf /opt/nginx.conf
|
||||
COPY ./crontab /var/spool/cron/crontabs/root
|
||||
apk del unzip wget && \
|
||||
adduser www && \
|
||||
chown -R www:www /opt/nginx
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
EXPOSE 80,443
|
||||
|
||||
CMD ["/opt/run.sh"]
|
||||
|
|
|
@ -17,7 +17,7 @@ http {
|
|||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
root /var/lib/nginx/html;
|
||||
root /opt/config/nginx;
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>This is the title of the webpage!</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue