FROM nginx:latest

RUN apt-get update && apt-get install -y nodejs npm

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

EXPOSE 80