Skip to content

Commit

Permalink
fix: use bookworm instead of alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
nayyara-airlangga committed Nov 7, 2023
1 parent 2cd8ab7 commit dc2568a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Build and Tag Image
run: |
echo $CONFIG_ENV | tr ' ' '\n' > .env
docker build --platform=linux/x86_64 -t "$REGISTRY/$REGISTRY_IMAGE:${{ github.sha }}" .
docker build -t "$REGISTRY/$REGISTRY_IMAGE:${{ github.sha }}" .
docker tag "$REGISTRY/$REGISTRY_IMAGE:${{ github.sha }}" "$REGISTRY/$REGISTRY_IMAGE:latest"
- name: Publish to Container Registry
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 --platform=linux/x86_64 node:18.18.2-alpine AS deps
FROM node:18.18.2-bookworm-slim AS deps
RUN apk add --no-cache libc6-compat

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


# Build
FROM --platform=linux/x86_64 node:18.18.2-alpine AS builder
FROM node:18.18.2-bookworm-slim 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 --platform=linux/x86_64 node:18.18.2-alpine AS runner
FROM node:18.18.2-bookworm-slim AS runner

WORKDIR /app

Expand Down

0 comments on commit dc2568a

Please sign in to comment.