Skip to content

Commit

Permalink
install ca-certificates in final stage
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed Aug 28, 2024
1 parent aea4217 commit 2746713
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ ENV NODE_ENV="production"
FROM base as build

# Install packages needed to build node modules
# Install pnpm and curl for dependencies in @sushiswap/chains
RUN apt-get update -qq && \
apt-get install -y build-essential pkg-config python-is-python3 curl

# Install pnpm and curl for dependencies in @sushiswap/chains
RUN npm install -g pnpm
RUN apt-get -y update && apt-get -y install curl

# Copy application code
COPY --link . .
Expand Down Expand Up @@ -47,6 +45,9 @@ FROM base
# Copy built application
COPY --from=build /app /app

# Install ca-certificates package to fix TLS verify
RUN apt-get -y update && apt-get -y install ca-certificates

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD [ "npm", "run", "start" ]

0 comments on commit 2746713

Please sign in to comment.