Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Temporarily disable the arm builder
Browse files Browse the repository at this point in the history
  • Loading branch information
kgapos committed Oct 25, 2023
1 parent 29be740 commit ac710a8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ RUN npm ci
# Copy the rest of the application code to the container
COPY ./src .

# Build stage for arm64/v8 architecture
FROM --platform=linux/arm64/v8 node:gallium-alpine3.18 AS builder-arm64
# # Build stage for arm64/v8 architecture
# FROM --platform=linux/arm64/v8 node:gallium-alpine3.18 AS builder-arm64

WORKDIR /app
# Copy the package.json and package-lock.json to the container
COPY ./src/package*.json .
RUN npm ci
# Copy the rest of the application code to the container
COPY ./src .
# WORKDIR /app
# # Copy the package.json and package-lock.json to the container
# COPY ./src/package*.json .
# RUN npm ci
# # Copy the rest of the application code to the container
# COPY ./src .

# Production stage
FROM node:gallium-alpine3.18
Expand All @@ -25,7 +25,7 @@ WORKDIR /app

# Copy the files from the appropriate builder stage based on the target architecture
COPY --from=builder-amd64 /app /app
COPY --from=builder-arm64 /app /app
# COPY --from=builder-arm64 /app /app

# Set the default command to run when starting the container
CMD ["npm", "start"]

0 comments on commit ac710a8

Please sign in to comment.