-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump up version + release process + OCI labels
- Loading branch information
Showing
2 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
FROM node:12.8.0-slim | ||
FROM node:13.10.1-alpine3.11 | ||
LABEL maintainer="[email protected]" | ||
|
||
ARG VERSION=2.2.1 | ||
ARG VERSION=4.0.0 | ||
ARG BUILD_DATE | ||
LABEL org.label-schema.build-date=${BUILD_DATE} | ||
LABEL org.label-schema.schema-version="1.0" | ||
LABEL org.label-schema.name="yanzinetworks/wscat" | ||
LABEL org.label-schema.description="WebSocket cat" | ||
LABEL org.label-schema.url="https://github.com/websockets/wscat" | ||
LABEL org.label-schema.docker.cmd="docker run --rm -it --net=host yanzinetworks/wscat" | ||
|
||
# Create user | ||
ENV USER=wscat | ||
|
@@ -25,4 +19,16 @@ RUN addgroup --gid "$GID" "$USER" && \ | |
RUN npm install -g wscat@${VERSION} | ||
|
||
USER ${USER} | ||
ENTRYPOINT [ "wscat" ] | ||
ENTRYPOINT [ "wscat" ] | ||
|
||
# OCI Annotation: https://github.com/opencontainers/image-spec/blob/master/annotations.md | ||
LABEL org.opencontainers.image.title="wscat" | ||
LABEL org.opencontainers.image.description="WebSocket cat" | ||
LABEL org.opencontainers.image.authors="Emmanuel Frecon <[email protected]>" | ||
LABEL org.opencontainers.image.url="https://github.com/YanziNetworks/wscat" | ||
LABEL org.opencontainers.image.documentation="https://github.com/YanziNetworks/wscat/README.md" | ||
LABEL org.opencontainers.image.source="https://github.com/YanziNetworks/wscat" | ||
LABEL org.opencontainers.image.version="$VERSION" | ||
LABEL org.opencontainers.image.created="$BUILD_DATE" | ||
LABEL org.opencontainers.image.vendor="Yanzi Networks AB" | ||
LABEL org.opencontainers.image.licenses="MIT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters