From d06593118cc322eab8a56d0009102402ff311b47 Mon Sep 17 00:00:00 2001 From: Andrei Canta Date: Sun, 26 Mar 2023 23:26:43 +0300 Subject: [PATCH] Update Dockerfile --- Dockerfile | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5f4aac2..150233b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,27 +1,10 @@ -# Build the react project -FROM node:18-alpine as builder -RUN apk add --no-cache python3 make g++ - -WORKDIR /app - -# Install the node_modules first -COPY package*.json ./ -RUN npm ci - -# Copy the rest of the files -COPY . . - -# Build the react application -RUN npm run build - -# Runner image FROM nginx:1.23.3-alpine # Copy the nginx configuration COPY ./docker/default.conf.template /etc/nginx/templates/default.conf.template # Copy the built react application to the nginx folder -COPY --from=builder /app/dist /usr/share/nginx/html +COPY ./dist /usr/share/nginx/html # Required NGINX env variables ENV NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx/conf.d