Skip to content

Commit

Permalink
fix platforms param for image build
Browse files Browse the repository at this point in the history
  • Loading branch information
arnidan committed Oct 24, 2022
1 parent 9db9fcf commit 512807d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
pull_request:

env:
IMAGE_NAME: nsfw-api
Expand Down Expand Up @@ -51,6 +50,6 @@ jobs:
context: .
push: true
tags: ${{ steps.prepare.outputs.image }}
platforms: platform=linux/arm64,linux/amd64
platforms: linux/arm64,linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM node:lts-slim

RUN apt-get update && apt-get install -y python3 build-essential \
&& rm -rf /var/lib/apt/lists/*

COPY yarn.lock package.json ./

RUN npm_config_build_from_source=true yarn install --prod
Expand Down

0 comments on commit 512807d

Please sign in to comment.