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
67f2876354
commit
1777e28f78
1 changed files with 2 additions and 2 deletions
|
@ -5,10 +5,10 @@ COPY ./ /usr/local/app/
|
|||
RUN npm install --save-dev
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
FROM nginx:latest
|
||||
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
|
||||
RUN rc-service nginx restart
|
||||
RUN service nginx restart
|
||||
|
||||
EXPOSE 80
|
||||
|
|
Loading…
Reference in a new issue