mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
18 lines
614 B
Docker
18 lines
614 B
Docker
FROM --platform=$TARGETPLATFORM uozi/nginx-ui-base:latest
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
ARG TARGETVARIANT
|
|
WORKDIR /app
|
|
EXPOSE 80 443
|
|
|
|
COPY resources/docker/start.sh /app/start.sh
|
|
COPY resources/docker/nginx.conf /usr/etc/nginx/nginx.conf
|
|
COPY resources/docker/nginx-ui.conf /usr/etc/nginx/conf.d/nginx-ui.conf
|
|
COPY resources/docker/nginx-ui.conf /etc/nginx/conf.d/nginx-ui.conf
|
|
COPY nginx-ui-$TARGETOS-$TARGETARCH$TARGETVARIANT/nginx-ui /app/nginx-ui
|
|
|
|
RUN cd /app && chmod a+x /app/start.sh \
|
|
&& rm -f /etc/nginx/conf.d/default.conf \
|
|
&& rm -f /usr/etc/nginx/conf.d/default.conf
|
|
|
|
ENTRYPOINT ["./start.sh"]
|