From 7733fa6ad1e823fcc8584eea34f766c66336a843 Mon Sep 17 00:00:00 2001 From: MengYX Date: Mon, 8 Feb 2021 14:11:46 +0800 Subject: [PATCH] Add: Dockerfile --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8588d87 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:lts AS builder +COPY . /src +WORKDIR /src +RUN npm ci && \ + npm run fix-compatibility && \ + npm run build -- --modern + + +FROM nginx:stable-alpine + +LABEL org.opencontainers.image.title="Unlock Music" +LABEL org.opencontainers.image.description="Unlock encrypted music file in browser" +LABEL org.opencontainers.image.authors="MengYX" +LABEL org.opencontainers.image.source="https://github.com/ix64/unlock-music" +LABEL org.opencontainers.image.licenses="MIT" +LABEL maintainer="MengYX" + +COPY --from=builder /src/dist /usr/share/nginx/html