Remove multi-stage Node.js build from the Dockerfile and copy pre-built dist assets directly into the nginx:alpine runtime image.
6 lines
144 B
Docker
6 lines
144 B
Docker
FROM nginx:alpine
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY dist/ /usr/share/nginx/html/
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|