Files
OCR/ocr_build/frontend/Dockerfile

19 lines
377 B
Docker

FROM nginx:alpine
# Remove default nginx static assets
RUN rm -rf /usr/share/nginx/html/*
# Create target directory
RUN mkdir -p /usr/share/nginx/html/ocrf
# Copy Pre-built assets (from local dist)
COPY dist /usr/share/nginx/html/ocrf
# Copy custom nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]