Update build step

This commit is contained in:
Keannu Bernasol 2024-10-17 19:01:21 +08:00
parent e9b17e066e
commit af5247571f

View file

@ -3,8 +3,7 @@ FROM node:18-alpine as build
WORKDIR /usr/local/app WORKDIR /usr/local/app
COPY ./ /usr/local/app/ COPY ./ /usr/local/app/
RUN npm install RUN npm install
RUN chmod +x /usr/local/app/build.sh RUN npm run build
RUN /usr/local/app/build.sh
FROM nginx:latest FROM nginx:latest
RUN rm -rf /usr/share/nginx/html/* RUN rm -rf /usr/share/nginx/html/*