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 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
|
||||
|
|
3
build.sh
3
build.sh
|
@ -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
|
Loading…
Reference in New Issue