Merge pull request #79 from CyferShepard/main

Merge from main to unstable
This commit is contained in:
Thegan Govender
2023-09-18 16:09:41 +02:00
committed by GitHub
5 changed files with 17 additions and 54 deletions

1
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1 @@
ko_fi: cyfershepard

View File

@@ -1,30 +0,0 @@
name: Docker CI Unstable ARM
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker image for ARM
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile-arm
push: true
tags: cyfershepard/jellystat:arm
platforms: linux/arm/v7

View File

@@ -11,6 +11,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v2.1.0
with:
@@ -21,4 +26,5 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: cyfershepard/jellystat:latest

View File

@@ -1,14 +1,21 @@
FROM node:slim
# Stage 1: Build the application
FROM node:slim AS builder
RUN mkdir /app
WORKDIR /app
COPY package*.json ./
RUN npm cache clean --force
RUN npm install
COPY ./ ./
# Stage 2: Create the production image
FROM node:slim
WORKDIR /app
COPY --from=builder /app .
EXPOSE 3000
CMD ["npm", "run", "start-app"]

View File

@@ -1,21 +0,0 @@
# Stage 1: Build the application
FROM arm32v7/node:14 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm cache clean --force
RUN npm install
COPY ./ ./
# Stage 2: Create the production image
FROM arm32v7/node:14-slim
WORKDIR /app
COPY --from=builder /app .
EXPOSE 3000
CMD ["npm", "run", "start-app"]