1
0
forked from um/web

Add: Dockerfile

This commit is contained in:
MengYX 2021-02-08 14:11:46 +08:00
parent 6a2dd672f3
commit 7733fa6ad1
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604

18
Dockerfile Normal file
View File

@ -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