mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 21:31:48 +01:00
33 lines
663 B
Docker
33 lines
663 B
Docker
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"]
|