nostream/Dockerfile

33 lines
663 B
Docker
Raw Permalink Normal View History

FROM node:18-alpine3.16 AS build
2022-10-12 01:19:33 +00:00
WORKDIR /build
COPY ["package.json", "package-lock.json", "./"]
2022-10-17 04:35:12 +00:00
RUN npm install --quiet
2022-10-12 01:19:33 +00:00
COPY . .
RUN npm run build
2022-10-28 00:39:12 -04:00
FROM node:18-alpine3.16
2022-10-12 01:19:33 +00:00
LABEL org.opencontainers.image.title="Nostream"
2024-10-22 19:08:21 -04:00
LABEL org.opencontainers.image.source=https://github.com/cameri/nostream
2022-12-24 15:44:38 -05:00
LABEL org.opencontainers.image.description="nostream"
2022-10-18 23:58:40 -04:00
LABEL org.opencontainers.image.authors="Ricardo Arturo Cabral Mejía"
LABEL org.opencontainers.image.licenses=MIT
2022-10-12 01:19:33 +00:00
WORKDIR /app
2022-12-24 19:35:00 +01:00
RUN apk add --no-cache --update git
2022-10-12 01:19:33 +00:00
2023-01-10 20:51:49 -05:00
ADD resources /app/resources
2022-10-12 01:19:33 +00:00
COPY --from=build /build/dist .
2022-10-17 04:35:12 +00:00
RUN npm install --omit=dev --quiet
2022-10-12 01:19:33 +00:00
USER node:node
2022-10-12 01:19:33 +00:00
CMD ["node", "src/index.js"]