Initial commit (as a partial copy of md:quality)
This commit is contained in:
30
public/static/js/swagger/swagger-ui-5.17.14/Dockerfile
Normal file
30
public/static/js/swagger/swagger-ui-5.17.14/Dockerfile
Normal file
@ -0,0 +1,30 @@
|
||||
# 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.26.0-alpine
|
||||
|
||||
RUN apk update && apk add --no-cache "nodejs>=18.20.1-r0 "
|
||||
|
||||
LABEL maintainer="char0n"
|
||||
|
||||
ENV API_KEY="**None**" \
|
||||
SWAGGER_JSON="/app/swagger.json" \
|
||||
PORT="8080" \
|
||||
PORT_IPV6="" \
|
||||
BASE_URL="/" \
|
||||
SWAGGER_JSON_URL="" \
|
||||
CORS="true" \
|
||||
EMBEDDING="false"
|
||||
|
||||
COPY --chown=nginx:nginx --chmod=0666 ./docker/default.conf.template ./docker/cors.conf ./docker/embedding.conf /etc/nginx/templates/
|
||||
|
||||
COPY --chmod=0666 ./dist/* /usr/share/nginx/html/
|
||||
COPY --chmod=0555 ./docker/docker-entrypoint.d/ /docker-entrypoint.d/
|
||||
COPY --chmod=0666 ./docker/configurator /usr/share/nginx/configurator
|
||||
|
||||
# Simulates running NGINX as a non root; in future we want to use nginxinc/nginx-unprivileged.
|
||||
# In future we will have separate unpriviledged images tagged as v5.1.2-unprivileged.
|
||||
RUN chmod 777 /usr/share/nginx/html/ /etc/nginx/conf.d/ /etc/nginx/conf.d/default.conf /var/cache/nginx/ /var/run/
|
||||
|
||||
EXPOSE 8080
|
Reference in New Issue
Block a user