File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 1- FROM node:18-alpine as builder
1+ FROM node:18-slim as builder
22WORKDIR /app
33
4- # Install Python/pip and dependencies for M1 Mac
5- ENV PYTHONUNBUFFERED=1
6- RUN apk add g++ make
7- RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
8- RUN python3 -m ensurepip
9- RUN pip3 install --no-cache --upgrade pip setuptools
4+ RUN apt-get update && apt-get install -y openssl
105
116COPY package.json package-lock.json .npmrc ./
127# overrides field on package.json is not allowd npm ci command...
138RUN npm i && npm update
149
15- FROM node:18-alpine
10+ FROM node:18-slim
1611WORKDIR /app
1712ENV PATH /app/node_modules/.bin:$PATH
1813
@@ -22,7 +17,7 @@ COPY --from=builder /app/node_modules ./node_modules
2217ENV NEXT_TELEMETRY_DISABLED=1
2318ENV NODE_ENV=production
2419
25- RUN npm run build
20+ RUN apt-get update && apt-get install -y openssl && npm run build
2621
2722EXPOSE 3000
2823#
You can’t perform that action at this time.
0 commit comments