From 689e65cec3cfadff83f9e50eae3c9beadb2d896a Mon Sep 17 00:00:00 2001 From: Alejandro Guerrero Aguilar Date: Tue, 12 Sep 2023 14:06:45 -0600 Subject: [PATCH] Update Dockerfile --- front-end/Dockerfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/front-end/Dockerfile b/front-end/Dockerfile index 34656b9f..515e5b2b 100644 --- a/front-end/Dockerfile +++ b/front-end/Dockerfile @@ -1,7 +1,20 @@ +# FROM node:carbon-alpine +# WORKDIR /opt/forms +# COPY package*.json ./ +# RUN npm install +# COPY . ./ +# RUN npm run build + +# FROM nginx:1.15-alpine +# COPY --from=0 /opt/forms/dist /usr/share/nginx/html +# COPY nginx.conf /etc/nginx/conf.d/default.conf + FROM node:carbon-alpine WORKDIR /opt/forms COPY package*.json ./ -RUN npm install +RUN apk add --no-cache --virtual .gyp python make g++ \ + && npm install \ + && apk del .gyp COPY . ./ RUN npm run build