From cf4a0a2db31fb7bfcee7be369b5b4d3d3fa24fa4 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Sun, 4 Feb 2024 11:44:59 +0000 Subject: [PATCH 1/4] add docker image --- .github/workflows/docker-image.yml | 61 ++++++++++++++++++++++++++++++ dockerfile | 26 +++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 .github/workflows/docker-image.yml create mode 100644 dockerfile diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..b2d8719 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,61 @@ +name: Docker image + +on: + push: + branches: + - '**' + tags: + - 'v*.*.*' + pull_request: + branches: + - 'main' + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + build-and-push-image: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=ref,event=branch + type=ref,event=pr + type=sha + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..4ab1dd6 --- /dev/null +++ b/dockerfile @@ -0,0 +1,26 @@ +# syntax=docker/dockerfile:1 +FROM node:20.11-bullseye AS build + +WORKDIR /app + +# Copy package files and install dependencies +COPY package*.json ./ +RUN npm install + +# Copy application files +COPY . . +RUN npm run build + +# Runtime stage +FROM node:20.11-alpine as runtime +WORKDIR /app + +# Copy built files from the build stage +COPY --from=build /app . + +# Install only runtime dependencies +RUN npm install --only=production + +EXPOSE 30000 + +ENTRYPOINT [ "node", "./build/index.js" ] From 07ac932f2e9d2207ec810a45e969359062d99906 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Sun, 4 Feb 2024 12:20:18 +0000 Subject: [PATCH 2/4] fix exposed port --- dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index 4ab1dd6..947b602 100644 --- a/dockerfile +++ b/dockerfile @@ -21,6 +21,6 @@ COPY --from=build /app . # Install only runtime dependencies RUN npm install --only=production -EXPOSE 30000 +EXPOSE 3000 ENTRYPOINT [ "node", "./build/index.js" ] From 6074df5e7d5d376819265f3758f2cb691cf52157 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Sun, 4 Feb 2024 12:51:02 +0000 Subject: [PATCH 3/4] update main branch --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b2d8719..6462033 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -8,7 +8,7 @@ on: - 'v*.*.*' pull_request: branches: - - 'main' + - 'master' env: REGISTRY: ghcr.io From f497840c12c07ecde713785c8b56f0605d743fb6 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Sat, 17 Feb 2024 12:47:30 +0000 Subject: [PATCH 4/4] update favicon --- src/app.html | 2 +- static/favicon.png | Bin 5055 -> 0 bytes static/favicon.svg | 22 ++++++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) delete mode 100644 static/favicon.png create mode 100644 static/favicon.svg diff --git a/src/app.html b/src/app.html index 0297ac7..cfcfc81 100644 --- a/src/app.html +++ b/src/app.html @@ -2,7 +2,7 @@ - + %sveltekit.head% diff --git a/static/favicon.png b/static/favicon.png deleted file mode 100644 index d6c8e8088fa24f39aa1c4864f8c700dca56e73a6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5055 zcmV;w6F}^VP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91fS>~a1ONa40RR91fB*mh07#AmcK`qrDM>^@RCodHod>iYMHR;rT0kHH zf^-NFX+lDk5}F(Z^w1Om0R@yM?H~{lJaRw;X>zEFB8XT(K|zWXfq>GYND&gMKnRe8 z7Ld?Pf#>i4W#%#8ep_eDSKi)p{%>Zd+B_jWy_(mnBY^Je z!Qiy0j-%JNCU0#gKXwG5{CrN?I@-w=ptGK|w>9Bs!*nJ6YE#C}0bUF%r!>lq0%N1{ z>+}w@0G;)+>0AZ(2h}5OSuk6f&`FKIeSLEXTkdkwRs`brqadGNxbEdgfbE~n=)9fn zg$WNPRA)~D7n`(s370qVMnJvAh}>e*d(~EMle<4orws-l0+F5MO(5RrK*IUJ6d*cQ zEhhY+an;wirL_RpL%`onx`MN8ULAI@1?VWP?Ja$g$SiZAC7(KbcXO>yA8yi~Hfdio z*Yj{~=LjaN?`-Au8uj9^X4m!Vt4F}4rqfQQCl?@YcmA##Jb3VQllP(t?MmPru6H+S zQ%%^5wi?unjdC5}9Xjt6@IF`toDa186a92<(D-W|U<6L`9a6q+@=hSU-NZFVsHxK} zKnHFJL?2pRiJ#s``S{NRHcuhRCz-5Q2(^JE`kBeowzB9#w@$CbdvOF9YC7j#r<2Yk z{$Jz&B|z{$4`(2KU}>=A(H z?t0)rr!&$-tpoIr0IEc%Y9e?tXgu4M=Fm&T>QxU0aTgJy%=csuZc*TNy0XSFEnM$y|9l0uSWp7Yh!Bh5WXFe)ak?8t;R}QWw2K0 z2#{2t&e!lCMtMhoLt#1EiXUXrb&okI^|vrw+mT!hGa)2c{xB7Gt%=q zz^3qc3%IM27;)8Rb+iM>6ga^R8BJmxK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