optimized structure

This commit is contained in:
Pavel@Vostro5468 2021-06-19 00:07:21 +03:00
parent 984842cd2b
commit 7f05eb8119
7 changed files with 8 additions and 15 deletions

View File

@ -1,20 +1,12 @@
FROM ubuntu FROM debian:10
#COPY apt-add-repos /usr/local/sbin COPY ./etc /tmp/etc
COPY timezone /etc/timezone
COPY localtime /etc/localtime
RUN apt update -y \ RUN apt-get update -y \
&& apt-get install nginx supervisor -y && apt-get install nginx supervisor -y
&& cp -vr /tmp/etc / \
#RUN rm -rf /var/www/html && rm -rf /tmp/* \
COPY nginx.conf /etc/nginx/ && rm -rf /var/lib/apt/lists/*
COPY proxy-params.conf /etc/nginx/
#COPY fox-web /var/www/html
#RUN a2enmod rewrite
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 80 EXPOSE 80
EXPOSE 443 EXPOSE 443

View File

@ -1,3 +1,4 @@
#!/bin/bash #!/bin/bash
docker build --tag=git.mxfox.ru/fox-proxy . #docker build --tag=git.mxfox.ru/fox-proxy .
docker buildx build --platform linux/arm,linux/arm64,linux/amd64 --tag=mxfox.ru/infra/fox-proxy . --push