Skip to content
Snippets Groups Projects
Select Git revision
  • e3eb873f9b8c4efe544b5af9145f63181b0220a6
  • master default protected
  • dev
  • gh-pages
4 results

Dockerfile

Blame
  • Dockerfile 1.07 KiB
    FROM nginx:latest AS runtime
    MAINTAINER Martin Weise <martin.weise@tuwien.ac.at>
    
    ARG SWAGGER_UI_VERSION=4.15.2
    
    RUN echo 1
    
    # reset
    RUN rm -f /usr/share/nginx/html/*
    
    WORKDIR /app
    
    ADD "https://github.com/swagger-api/swagger-ui/archive/refs/tags/v${SWAGGER_UI_VERSION}.tar.gz" /app/tmp.tar.gz
    RUN tar xzfv /app/tmp.tar.gz --strip-components 1 && rm -f /app/tmp.tar.gz
    
    COPY ./swagger-initializer.js ./swagger-initializer.js
    COPY ./docker-build.sh ./docker-build.sh
    RUN chmod +x ./docker-build.sh
    
    COPY ./nginx.conf /etc/nginx/nginx.conf
    
    WORKDIR /usr/share/nginx/html/
    
    COPY ./index.html ./index.html
    
    COPY ./api-analyse.yaml ./docs/analyse/api.yaml
    COPY ./api-authentication.yaml ./docs/authentication/api.yaml
    COPY ./api-container.yaml ./docs/container/api.yaml
    COPY ./api-database.yaml ./docs/database/api.yaml
    COPY ./api-identifier.yaml ./docs/identifier/api.yaml
    COPY ./api-metadata.yaml ./docs/metadata/api.yaml
    COPY ./api-query.yaml ./docs/query/api.yaml
    COPY ./api-table.yaml ./docs/table/api.yaml
    COPY ./api-units.yaml ./docs/units/api.yaml
    
    # generate
    RUN bash /app/docker-build.sh