Skip to content

Commit

Permalink
fix ca-certificates not installed in final docker stage (#59)
Browse files Browse the repository at this point in the history
* install curl instead of ca-certificates

* install ca-certificates in final stage
  • Loading branch information
alecananian authored Aug 28, 2024
1 parent 747186b commit 39d52ac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 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
RUN apt-get update -qq && \
apt-get install -y build-essential pkg-config python-is-python3 ca-certificates

# 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
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 39d52ac

Please sign in to comment.