mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
Update build step
This commit is contained in:
parent
e9b17e066e
commit
af5247571f
1 changed files with 1 additions and 2 deletions
|
@ -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/*
|
||||||
|
|
Loading…
Reference in a new issue