mirror of
https://github.com/lemeow125/Notes.git
synced 2025-04-28 02:31:16 +08:00
Update Dockerfile
This commit is contained in:
parent
2badacf607
commit
67f2876354
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ COPY ./ /usr/local/app/
|
||||||
RUN npm install --save-dev
|
RUN npm install --save-dev
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:alpine-slim
|
FROM nginx:alpine
|
||||||
RUN rm -rf /usr/share/nginx/html/*
|
RUN rm -rf /usr/share/nginx/html/*
|
||||||
COPY --from=build /usr/local/app/build/ /usr/share/nginx/html
|
COPY --from=build /usr/local/app/build/ /usr/share/nginx/html
|
||||||
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue