forked from cameri/nostream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (19 loc) · 663 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:18-alpine3.16 as build
WORKDIR /build
COPY ["package.json", "package-lock.json", "./"]
RUN npm install --quiet
COPY . .
RUN npm run build
FROM node:18-alpine3.16
LABEL org.opencontainers.image.title="Nostream"
LABEL org.opencontainers.image.source=https://github.com/Cameri/nostream
LABEL org.opencontainers.image.description="nostream"
LABEL org.opencontainers.image.authors="Ricardo Arturo Cabral Mejía"
LABEL org.opencontainers.image.licenses=MIT
WORKDIR /app
RUN apk add --no-cache --update git
ADD resources /app/resources
COPY --from=build /build/dist .
RUN npm install --omit=dev --quiet
USER node:node
CMD ["node", "src/index.js"]