Skip to content

Commit

Permalink
🩹 Fix dockerfile for yarn (#267)
Browse files Browse the repository at this point in the history
* Try fix dockerfile

* Reduce platforms for experimental

* Update base image
  • Loading branch information
aaronleopold authored Feb 11, 2024
1 parent 1128556 commit fd3396a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/experimental.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: 'Stump Experimental CI'

on:
pull_request:
branches:
- experimental
push:
branches:
- experimental
Expand All @@ -27,8 +30,8 @@ jobs:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
tags: 'experimental'
load: false
push: true
platforms: 'linux/arm64/v8,linux/amd64'
load: ${{ github.event_name == 'pull_request' }}
push: ${{ github.event_name == 'push' }}
platforms: 'linux/amd64'
# platforms: 'linux/arm64/v8,linux/arm/v7,linux/amd64'
discord-webhook: ''
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
# Frontend Build Stage
# ------------------------------------------------------------------------------

FROM node:16-alpine3.14 as frontend
FROM node:20.0.0-alpine3.16 as frontend
ARG TARGETARCH

WORKDIR /app

COPY . .

RUN npm install -g yarn
# yarn is installed by default now
# RUN npm install -g yarn

RUN yarn install
RUN yarn web build
Expand Down

0 comments on commit fd3396a

Please sign in to comment.