Skip to content

Commit fbe0749

Browse files
committed
fix docker build
1 parent f5cbd98 commit fbe0749

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
FROM node:18-alpine as builder
1+
FROM node:18-slim as builder
22
WORKDIR /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

116
COPY package.json package-lock.json .npmrc ./
127
# overrides field on package.json is not allowd npm ci command...
138
RUN npm i && npm update
149

15-
FROM node:18-alpine
10+
FROM node:18-slim
1611
WORKDIR /app
1712
ENV PATH /app/node_modules/.bin:$PATH
1813

@@ -22,7 +17,7 @@ COPY --from=builder /app/node_modules ./node_modules
2217
ENV NEXT_TELEMETRY_DISABLED=1
2318
ENV NODE_ENV=production
2419

25-
RUN npm run build
20+
RUN apt-get update && apt-get install -y openssl && npm run build
2621

2722
EXPOSE 3000
2823
#

0 commit comments

Comments
 (0)