diff --git a/Dockerfile b/Dockerfile index cecfb425ebe20628736556f35dc2fbb547705bba..8c2fa0493f8ba87a4cc1d20df5a63cdca04c8974 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,8 @@ -FROM arm32v7/node:16 AS build-env +FROM arm32v7/node:15 AS build-env WORKDIR /usr/src/app # Environment variables for production -ENV NODE_ENV=production COPY package*.json ./ RUN yarn install @@ -11,7 +10,6 @@ COPY . . RUN yarn run build RUN yarn run generate - FROM arm32v7/nginx:alpine -COPY --from=0 dist ./html -COPY html /usr/share/nginx/html +COPY --from=build-env /usr/src/app/dist /usr/share/nginx/html +ENV NODE_ENV=production