-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (18 loc) · 625 Bytes
/
Dockerfile
File metadata and controls
29 lines (18 loc) · 625 Bytes
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
FROM node:lts-alpine
ENV TZ=UTC
ENV NODE_ENV=production
LABEL org.opencontainers.image.source="https://github.com/smashedr/node-badges"
LABEL org.opencontainers.image.description="Node Badges"
LABEL org.opencontainers.image.authors="smashedr"
RUN apk add --no-cache curl
COPY docker-entrypoint.sh /
WORKDIR /app
COPY package.json package-lock.json ./
RUN --mount=type=cache,target=/root/.npm npm ci
COPY --chown=node:node ./src ./src
ARG VERSION="Dockerfile"
ENV APP_VERSION="${VERSION}"
LABEL org.opencontainers.image.version="${VERSION}"
USER node
ENTRYPOINT ["sh", "/docker-entrypoint.sh"]
CMD ["npm", "start"]