mirror of
https://github.com/lemeow125/Notes.git
synced 2025-01-18 18:33:02 +08:00
Optimize Dockerfile
This commit is contained in:
parent
0a1a6c5976
commit
34d3ca5829
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ COPY ./ /usr/local/app/
|
|||
RUN npm install --save-dev
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:latest
|
||||
FROM nginx:alpine-slim
|
||||
RUN rm -rf /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
|
||||
|
|
Loading…
Reference in a new issue