Files
swagger-ui/Dockerfile
Peter Dave Hello 4de4f71af7 improvement: update Dockerfile (#4799)
* [Dockerfile] Use `--no-cache` instead of `--update` for `apk add`
  To prevent unnecessary cache in the Docker image.
* [Dockerfile] Use `COPY` instead of `ADD` for non tarball file copying
* [Dockerfile] Update base image from Alpine v3.5 to v3.8
2018-08-08 14:16:20 -07:00

31 lines
683 B
Docker

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 --no-cache nginx
RUN mkdir -p /run/nginx
COPY nginx.conf /etc/nginx/
# copy swagger files to the `/js` folder
COPY ./dist/* /usr/share/nginx/html/
COPY ./docker-run.sh /usr/share/nginx/
EXPOSE 8080
CMD ["sh", "/usr/share/nginx/docker-run.sh"]