Skip to content

Commit

Permalink
fix: use linux/amd64 platform bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
nayyara-airlangga committed Nov 7, 2023
1 parent df2e405 commit dea1edf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
echo $CONFIG_ENV | tr ' ' '\n' > .env
echo $REGISTRY_ACCESS_TOKEN | docker login -u $REGISTRY_USER --password-stdin $REGISTRY
docker rm -f chiral
docker rmi "$REGISTRY/$REGISTRY_IMAGE" &>2
docker pull "$REGISTRY/$REGISTRY_IMAGE:latest"
docker run -d --name chiral \
--restart always \
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Installation
FROM node:18.18.2-alpine AS deps
FROM --platform=linux/amd64 node:18.18.2-alpine AS deps
RUN apk add --no-cache libc6-compat

WORKDIR /app
Expand All @@ -9,7 +9,7 @@ RUN npm ci


# Build
FROM node:18.18.2-alpine AS builder
FROM --platform=linux/amd64 node:18.18.2-alpine AS builder

WORKDIR /app

Expand All @@ -18,7 +18,7 @@ COPY --from=deps /app/node_modules ./node_modules
RUN npm run build && npm install --production --ignore-scripts --prefer-offline

# Runner
FROM node:18.18.2-alpine AS runner
FROM --platform=linux/amd64 node:18.18.2-alpine AS runner

WORKDIR /app

Expand Down

0 comments on commit dea1edf

Please sign in to comment.