forked from swagger-api/swagger-ui
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
35 lines (26 loc) · 897 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM alpine:3.8
LABEL maintainer="fehguy"
ENV VERSION "v2.2.10"
ENV FOLDER "swagger-ui-2.2.10"
ENV API_URL "https://petstore.swagger.io/v2/swagger.json"
ENV API_URLS ""
ENV API_KEY "**None**"
ENV OAUTH_CLIENT_ID "**None**"
ENV OAUTH_CLIENT_SECRET "**None**"
ENV OAUTH_REALM "**None**"
ENV OAUTH_APP_NAME "**None**"
ENV OAUTH_ADDITIONAL_PARAMS "**None**"
ENV SWAGGER_JSON "/app/swagger.json"
ENV PORT 8080
ENV BASE_URL ""
RUN apk add --update nginx
RUN mkdir -p /run/nginx /usr/share/nginx/html/latest /usr/share/nginx/html/legacy /usr/share/nginx/html/dev
COPY nginx.conf /etc/nginx/
COPY dist/ /usr/share/nginx/html/ui/
COPY latest/ /usr/share/nginx/html/latest/
COPY legacy/ /usr/share/nginx/html/legacy/
COPY dev/ /usr/share/nginx/html/dev/
ADD redirect.html /usr/share/nginx/html/index.html
ADD docker-run.sh /usr/share/nginx/
EXPOSE 8080
CMD ["sh", "/usr/share/nginx/docker-run.sh"]