forked from CSI-KJSCE/appointment_to_examiner
feat: Add Dockerfile for multi-stage build of React application served by Nginx
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# Stage 1: Build the React application
|
||||
FROM node:18-alpine as build
|
||||
FROM node:18-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
COPY package.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user