Fix docker
This commit is contained in:
1 parent
95f375f053
commit
7f9a526841
3 files changed
+21
-12
No files matched your search
+3
-3
@@ -3,10 +3,10 @@ WORKDIR /usr/src/app
|
||||
COPY . ./
|
||||
RUN apk add git
|
||||
RUN npm install
|
||||
RUN npm build
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.25-alpine-slim
|
||||
EXPOSE 8082
|
||||
COPY cfg/8082_isp-admin-ui.conf /etc/nginx/conf.d/8081_isp-admin-ui.conf
|
||||
EXPOSE 80
|
||||
COPY cfg/80_isp-admin-ui.conf /etc/nginx/conf.d/80_isp-admin-ui.conf
|
||||
COPY --from=build-deps /usr/src/app/build /opt/msp/isp-admin-ui
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
server {
|
||||
listen 8081;
|
||||
server_name localhost;
|
||||
root /opt/msp/isp-admin-ui/;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /opt/msp/isp-admin-ui/;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
location /api {
|
||||
client_max_body_size 10M;
|
||||
|
||||
proxy_pass http://10.2.4.241:9003;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user