fix: copy 3dmodels directory to Nginx html folder in production build
This commit is contained in:
@@ -24,6 +24,7 @@ RUN npm run build
|
|||||||
FROM nginx:alpine AS production
|
FROM nginx:alpine AS production
|
||||||
# Copy built assets from the build stage to Nginx
|
# Copy built assets from the build stage to Nginx
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
COPY --from=build /app/3dmodels /usr/share/nginx/html/3dmodels
|
||||||
# Copy custom nginx config
|
# Copy custom nginx config
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
# Expose port 80 for Nginx
|
# Expose port 80 for Nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user