Skip to content

Commit

Permalink
Update Dockerfile to install Curl
Browse files Browse the repository at this point in the history
Update Dockerfile to install Curl
  • Loading branch information
akadapa authored Jun 3, 2024
1 parent ed94c09 commit fd5a317
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM node:20 as buildContainer
WORKDIR /app

# Install curl for buildContainer
RUN apt-get update && apt-get install -y curl

COPY . /app
RUN npm install -g npm@latest
RUN npm install --legacy-peer-deps
Expand All @@ -11,6 +15,10 @@ RUN npm run build:ssr
FROM node:20-alpine

WORKDIR /app

# Install curl for productionContainer
RUN apk add --no-cache curl

COPY --from=buildContainer /app/package.json /app

ENV NODE_OPTIONS --max-old-space-size=16384
Expand Down

0 comments on commit fd5a317

Please sign in to comment.