Skip to content

Commit

Permalink
build(docker): specify platform explicitly (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
bchrobot authored Sep 30, 2022
1 parent c537ea4 commit e5aef69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Dependency Cacher
### -------------------------
FROM endeveit/docker-jq:latest as deps
FROM --platform=linux/amd64 endeveit/docker-jq:latest as deps

# To prevent cache invalidation from changes in fields other than dependencies
# https://stackoverflow.com/a/59606373
Expand All @@ -10,7 +10,7 @@ RUN jq '{ dependencies, devDependencies, resolutions }' < /tmp/package.json > /t

### Fat Build
### -------------------------
FROM node:16.14.0 AS builder
FROM --platform=linux/amd64 node:16.14.0 AS builder

WORKDIR /usr/Spoke

Expand All @@ -36,7 +36,7 @@ RUN yarn run build

### Slim Deploy
### -------------------------
FROM node:16.14.0
FROM --platform=linux/amd64 node:16.14.0

WORKDIR /usr/Spoke

Expand Down

0 comments on commit e5aef69

Please sign in to comment.