everything
continuous-integration/drone/push Build is passing Details

This commit is contained in:
quackerd 2021-04-25 05:00:43 -04:00
parent d92a003c31
commit 46f82ecc52
1 changed files with 16 additions and 8 deletions

View File

@ -2,18 +2,26 @@ FROM alpine:latest
COPY image/ /opt/
RUN set -xe && \
apk add --no-cache unzip wget nginx certbot openssl && \
mkdir -p /opt/xray && \
# install packages
RUN set -xe && apk add --no-cache unzip wget nginx certbot openssl
# setup core files
RUN set -xe && 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 && \
mv /opt/crontab /var/spool/cron/crontabs/root && \
addgroup www && \
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 && \
adduser -H -D -S -s /bin/false www -G www && \
chown -R www:www /opt/nginx && \
apk del unzip wget
chown -R www:www /opt/nginx
# remove packages
RUN set -xe && apk del unzip wget
EXPOSE 80 443