Optimise dockerfile
This commit is contained in:
parent
85ce074c88
commit
15d9843f06
@ -5,10 +5,9 @@ COPY package.json /
|
||||
COPY package-lock.json /
|
||||
RUN npm install
|
||||
COPY . ./
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine-slim
|
||||
COPY --from=build /app/build /usr/share/nginx/html
|
||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=build /app/build /usr/share/nginx/html
|
||||
RUN chown -R nginx:nginx /usr/share/nginx/html
|
Loading…
Reference in New Issue
Block a user