forked from swagger-api/swagger-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (15 loc) · 714 Bytes
/
Dockerfile
File metadata and controls
22 lines (15 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM nginx:1.27.5-alpine
LABEL maintainer="vladimir.gorej@smartbear.com" \
org.opencontainers.image.authors="vladimir.gorej@smartbear.com" \
org.opencontainers.image.url="https://editor.swagger.io" \
org.opencontainers.image.source="https://github.com/swagger-api/swagger-editor"
ENV BASE_URL="/" \
PORT="8080"
RUN apk update && apk add --no-cache "tiff>=4.4.0-r4"
COPY nginx.conf /etc/nginx/templates/default.conf.template
COPY ./index.html /usr/share/nginx/html/
COPY ./dist/oauth2-redirect.html /usr/share/nginx/html/
COPY ./dist/* /usr/share/nginx/html/dist/
COPY ./docker-run.sh /docker-entrypoint.d/91-docker-run.sh
RUN chmod +x /docker-entrypoint.d/91-docker-run.sh
EXPOSE 8080