everything
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
b2e826804a
commit
880935f956
24
Dockerfile
24
Dockerfile
|
@ -2,26 +2,18 @@ FROM alpine:latest
|
|||
|
||||
COPY image/ /opt/
|
||||
|
||||
# install packages
|
||||
RUN set -xe && apk add --no-cache unzip wget nginx certbot openssl
|
||||
|
||||
# setup core files
|
||||
RUN set -xe && mkdir -p /opt/xray && \
|
||||
RUN set -xe &&
|
||||
apk add --no-cache unzip wget nginx certbot openssl && \
|
||||
mkdir -p /opt/xray && \
|
||||
ln -s /opt/config/certs /etc/letsencrypt && \
|
||||
unzip /opt/Xray-linux-64.zip -d /opt/xray && \
|
||||
rm /opt/Xray-linux-64.zip && \
|
||||
chmod +x /opt/run.sh /opt/crypt.sh
|
||||
|
||||
# crond
|
||||
RUN set -xe && mv /opt/crontab /var/spool/cron/crontabs/root
|
||||
|
||||
# nginx
|
||||
RUN set -xe && addgroup www && \
|
||||
chmod +x /opt/run.sh /opt/crypt.sh && \
|
||||
mv /opt/crontab /var/spool/cron/crontabs/root && \
|
||||
addgroup www && \
|
||||
adduser -H -D -S -s /bin/false www -G www && \
|
||||
chown -R www:www /opt/nginx
|
||||
|
||||
# remove packages
|
||||
RUN set -xe && apk del unzip wget
|
||||
chown -R www:www /opt/nginx && \
|
||||
set -xe && apk del unzip wget
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
|
|
Loading…
Reference in New Issue