-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (16 loc) · 553 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (16 loc) · 553 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
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
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
CMD ["npm", "start"]