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 timezone /etc/timezone
COPY localtime /etc/localtime
COPY ./etc /tmp/etc
RUN apt update -y \
RUN apt-get update -y \
&& apt-get install nginx supervisor -y
#RUN rm -rf /var/www/html
COPY nginx.conf /etc/nginx/
COPY proxy-params.conf /etc/nginx/
#COPY fox-web /var/www/html
#RUN a2enmod rewrite
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
&& cp -vr /tmp/etc / \
&& rm -rf /tmp/* \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 80
EXPOSE 443

View File

@ -1,3 +1,4 @@
#!/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