* reorganize docker things * Configurator WIP * implement Docker runtime config generator * add tests * update documentation * fix Markdown tables * Move Docker section * add note to README * move up `nodejs` install for more aggressive caching * drop exclusive test * fix missing `DISPLAY_OPERATION_ID`
33 lines
821 B
Docker
33 lines
821 B
Docker
# Looking for information on environment variables?
|
|
# We don't declare them here — take a look at our docs.
|
|
# https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md
|
|
|
|
FROM nginx:1.15-alpine
|
|
|
|
RUN apk add nodejs
|
|
|
|
LABEL maintainer="fehguy"
|
|
|
|
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 ""
|
|
|
|
COPY ./docker/nginx.conf /etc/nginx/
|
|
|
|
# copy swagger files to the `/js` folder
|
|
COPY ./dist/* /usr/share/nginx/html/
|
|
COPY ./docker/run.sh /usr/share/nginx/
|
|
COPY ./docker/configurator /usr/share/nginx/configurator
|
|
|
|
RUN chmod +x /usr/share/nginx/run.sh
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["sh", "/usr/share/nginx/run.sh"]
|