diff --git a/Dockerfile b/Dockerfile index cb823f5..764cd0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . . @@ -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" ]