diff --git a/Dockerfile b/Dockerfile index ccf0f14..8daebc3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM node:18-alpine AS builder WORKDIR /app +COPY package*.json ./ COPY . . RUN npm install --include=dev RUN npm run build @@ -9,6 +10,7 @@ WORKDIR /app COPY --from=builder /app/.next/standalone . COPY --from=builder /app/public ./public COPY --from=builder /app/.next/static ./.next/static +RUN npm install sharp EXPOSE 3000 CMD ["node", "server.js"] \ No newline at end of file