diff --git a/Dockerfile b/Dockerfile index 0ced247..870cf98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,16 @@ -FROM node:18.14.2 +FROM node:18.14.2 as builder WORKDIR /app +ENV NODE_OPTIONS=--openssl-legacy-provider COPY package*.json ./ RUN npm install COPY . . - +FROM node:18.14.2 as run +WORKDIR /app +COPY package*.json ./ +COPY --from=builder /app/.output /.output EXPOSE 3000 - -RUN npm run build CMD [ "npm", "run", "start" ] \ No newline at end of file