Skip to content

Commit

Permalink
chore(docker): add metadata annotations (#4319)
Browse files Browse the repository at this point in the history
Refs #4314
  • Loading branch information
char0n authored Jul 27, 2023
1 parent 0007553 commit 20ce633
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
FROM nginx:1.25.1-alpine

LABEL maintainer="[email protected]" \
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.url="https://editor-next.swagger.io" \
org.opencontainers.image.source="https://github.com/swagger-api/swagger-editor/tree/next"

RUN apk update && apk add --no-cache "tiff>=4.4.0-r4"

COPY ./build /usr/share/nginx/html

EXPOSE 8080

# start nginx
CMD ["nginx", "-g", "daemon off;"]
8 changes: 8 additions & 0 deletions Dockerfile.unprivileged
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM nginxinc/nginx-unprivileged:1.25.1-alpine

LABEL maintainer="[email protected]" \
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.url="https://editor-next.swagger.io" \
org.opencontainers.image.source="https://github.com/swagger-api/swagger-editor/tree/next"

COPY ./build /usr/share/nginx/html

EXPOSE 8080

# start nginx
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 20ce633

Please sign in to comment.