MengYX
4 years ago
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
2 changed files with
21 additions and
10 deletions
-
.github/workflows/release.yml
-
Dockerfile
|
@ -128,3 +128,22 @@ jobs: |
|
|
asset_name: sha256sum.txt |
|
|
asset_name: sha256sum.txt |
|
|
asset_content_type: text/plain |
|
|
asset_content_type: text/plain |
|
|
|
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx |
|
|
|
|
|
uses: docker/setup-buildx-action@v1 |
|
|
|
|
|
|
|
|
|
|
|
- name: Login to DockerHub |
|
|
|
|
|
uses: docker/login-action@v1 |
|
|
|
|
|
with: |
|
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }} |
|
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }} |
|
|
|
|
|
|
|
|
|
|
|
- name: Build Docker and push |
|
|
|
|
|
uses: docker/build-push-action@v2 |
|
|
|
|
|
with: |
|
|
|
|
|
context: . |
|
|
|
|
|
file: ./Dockerfile |
|
|
|
|
|
platforms: linux/amd64,linux/arm64,linux/386 |
|
|
|
|
|
push: true |
|
|
|
|
|
tags: | |
|
|
|
|
|
ix64/unlock-music:latest |
|
|
|
|
|
ix64/unlock-music:${{ github.ref }} |
|
|
|
@ -1,12 +1,4 @@ |
|
|
FROM node:lts AS builder |
|
|
FROM --platform=$TARGETPLATFORM nginx:stable-alpine |
|
|
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.title="Unlock Music" |
|
|
LABEL org.opencontainers.image.description="Unlock encrypted music file in browser" |
|
|
LABEL org.opencontainers.image.description="Unlock encrypted music file in browser" |
|
@ -15,4 +7,4 @@ LABEL org.opencontainers.image.source="https://github.com/ix64/unlock-music" |
|
|
LABEL org.opencontainers.image.licenses="MIT" |
|
|
LABEL org.opencontainers.image.licenses="MIT" |
|
|
LABEL maintainer="MengYX" |
|
|
LABEL maintainer="MengYX" |
|
|
|
|
|
|
|
|
COPY --from=builder /src/dist /usr/share/nginx/html |
|
|
COPY ./dist /usr/share/nginx/html |
|
|