optimized structure
This commit is contained in:
parent
984842cd2b
commit
7f05eb8119
20
Dockerfile
20
Dockerfile
|
@ -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
|
||||||
|
|
3
build.sh
3
build.sh
|
@ -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
|
Loading…
Reference in New Issue