Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ ARG TARGETOS
|
|
| 4 |
ARG TARGETARCH
|
| 5 |
ARG TARGETVARIANT
|
| 6 |
WORKDIR /app
|
| 7 |
-
EXPOSE
|
| 8 |
|
| 9 |
COPY resources/demo/ojbk.me /etc/nginx/sites-available/ojbk.me
|
| 10 |
COPY resources/demo/app.ini /etc/nginx-ui/app.ini
|
|
@@ -20,7 +20,7 @@ COPY resources/docker/nginx.conf /etc/nginx/nginx.conf
|
|
| 20 |
COPY resources/docker/nginx-ui.conf /etc/nginx/conf.d/nginx-ui.conf
|
| 21 |
|
| 22 |
# copy nginx-ui executable binary
|
| 23 |
-
COPY nginx-ui-$TARGETOS-$TARGETARCH$TARGETVARIANT/nginx-ui /usr/local/bin/nginx-ui
|
| 24 |
|
| 25 |
RUN rm -f /etc/nginx/conf.d/default.conf
|
| 26 |
|
|
@@ -28,4 +28,10 @@ RUN rm -f /etc/nginx/conf.d/default.conf
|
|
| 28 |
RUN rm -f /var/log/nginx/access.log && \
|
| 29 |
touch /var/log/nginx/access.log && \
|
| 30 |
rm -f /var/log/nginx/error.log && \
|
| 31 |
-
touch /var/log/nginx/error.log
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
ARG TARGETARCH
|
| 5 |
ARG TARGETVARIANT
|
| 6 |
WORKDIR /app
|
| 7 |
+
EXPOSE 7860
|
| 8 |
|
| 9 |
COPY resources/demo/ojbk.me /etc/nginx/sites-available/ojbk.me
|
| 10 |
COPY resources/demo/app.ini /etc/nginx-ui/app.ini
|
|
|
|
| 20 |
COPY resources/docker/nginx-ui.conf /etc/nginx/conf.d/nginx-ui.conf
|
| 21 |
|
| 22 |
# copy nginx-ui executable binary
|
| 23 |
+
#COPY nginx-ui-$TARGETOS-$TARGETARCH$TARGETVARIANT/nginx-ui /usr/local/bin/nginx-ui
|
| 24 |
|
| 25 |
RUN rm -f /etc/nginx/conf.d/default.conf
|
| 26 |
|
|
|
|
| 28 |
RUN rm -f /var/log/nginx/access.log && \
|
| 29 |
touch /var/log/nginx/access.log && \
|
| 30 |
rm -f /var/log/nginx/error.log && \
|
| 31 |
+
touch /var/log/nginx/error.log
|
| 32 |
+
|
| 33 |
+
# 暴露端口 7860
|
| 34 |
+
#EXPOSE 7860
|
| 35 |
+
|
| 36 |
+
# 启动 Nginx-UI 并监听 7860 端口
|
| 37 |
+
CMD ["nginx-ui", "--port", "7860"]
|