From 82beb040bc10d5c033e52ca50973a719a9d09974 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Mon, 7 Feb 2022 14:38:02 -0600 Subject: [PATCH] Remove production build on docker file to test build for arm architecture --- server/Dockerfile-minimal | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/server/Dockerfile-minimal b/server/Dockerfile-minimal index 5df93e35ab..acf4e9ac02 100644 --- a/server/Dockerfile-minimal +++ b/server/Dockerfile-minimal @@ -32,32 +32,32 @@ RUN apt-get clean && \ ################################## # PRODUCTION ################################## -FROM node:16-bullseye-slim as production -ARG DEBIAN_FRONTEND=noninteractive -ARG NODE_ENV=production -ENV NODE_ENV=${NODE_ENV} +# FROM node:16-bullseye-slim as production +# ARG DEBIAN_FRONTEND=noninteractive +# ARG NODE_ENV=production +# ENV NODE_ENV=${NODE_ENV} -WORKDIR /usr/src/app +# WORKDIR /usr/src/app -COPY package.json yarn.lock ./ +# COPY package.json yarn.lock ./ -RUN apt-get update -RUN apt-get install gcc g++ make cmake python3 python3-pip ffmpeg -y +# RUN apt-get update +# RUN apt-get install gcc g++ make cmake python3 python3-pip ffmpeg -y -RUN npm i -g yarn --force +# RUN npm i -g yarn --force -RUN yarn install --only=production +# RUN yarn install --only=production -COPY . . +# COPY . . -COPY --from=development /usr/src/app/dist ./dist +# COPY --from=development /usr/src/app/dist ./dist -# Clean up commands -RUN apt-get autoremove -y && apt-get clean && \ - rm -rf /usr/local/src/* +# # Clean up commands +# RUN apt-get autoremove -y && apt-get clean && \ +# rm -rf /usr/local/src/* -RUN apt-get clean && \ - rm -rf /var/lib/apt/lists/* +# RUN apt-get clean && \ +# rm -rf /var/lib/apt/lists/* -CMD ["node", "dist/main"] \ No newline at end of file +# CMD ["node", "dist/main"] \ No newline at end of file