mirror of
https://github.com/lemeow125/Notes.git
synced 2025-01-18 18:33:02 +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…
Reference in a new issue