Skip to content

Commit 3c619af

Browse files
committed
fix: repaired API URL in Swagger-UI & updated Swagger-UI
1 parent 20b73cc commit 3c619af

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile-server

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ COPY main.go .
44
COPY pkg ./pkg
55
COPY go.mod .
66

7-
RUN wget https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.20.2.tar.gz && \
8-
tar -xf v5.20.2.tar.gz && \
9-
mv swagger-ui-5.20.2/dist ./swagger-ui && \
7+
RUN wget https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.21.0.tar.gz && \
8+
tar -xf v5.21.0.tar.gz && \
9+
mv swagger-ui-5.21.0/dist ./swagger-ui && \
1010
sed -i 's/url: \".*\"/url: \"\.\/openapi.yaml\",\n\tsyntaxHighlight: {activated: false}/' swagger-ui/swagger-initializer.js && \
11-
# mv swagger-ui pkg/mb3server/swagger-ui && \
12-
rm -rf v5.20.2.tar.gz swagger-ui-5.20.2
11+
rm -rf v5.21.0.tar.gz swagger-ui-5.21.0
1312

1413
COPY api/openapi.yaml ./swagger-ui/openapi.yaml
1514
COPY api/schemas ./swagger-ui/schemas
1615
COPY entrypoint-mb3server.sh ./entrypoint-mb3server.sh
1716

1817
EXPOSE 8080
19-
ENTRYPOINT ["sh", "entrypoint-mb3server.sh", "${MB3_API_URL}"]
18+
ENTRYPOINT sh entrypoint-mb3server.sh "${MB3_API_URL}"

0 commit comments

Comments
 (0)