-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (23 loc) · 985 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM node:16-alpine3.11
LABEL maintainer="[email protected]"
# Label Args
ARG BUILD_DATE
ARG VCS_REF
ARG BUILD_VERSION
# Labels.
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.name="wglabz/node-aruco"
LABEL org.label-schema.description="Aruco marker generator with HTTP APIs using NodeJS"
LABEL org.label-schema.url="https://wglabz.in/"
LABEL org.label-schema.vcs-url="https://github.com/oksbwn/Aruco-NodeJS"
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.vendor="WGLabz"
LABEL org.label-schema.version=$BUILD_VERSION
LABEL org.label-schema.docker.cmd="docker run -p 8089:8089 -d wglabz/node-aruco"
WORKDIR /usr/src/aruko
RUN npm i sharp
COPY server.js ./
EXPOSE 8089
CMD [ "node", "server.js" ]
# docker build --no-cache=true --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VCS_REF=`git rev-parse --short HEAD` --build-arg BUILD_VERSION=1.0.1 -t node-aruco:latest .