Files
eamco_office_frontend/Dockerfile.local
T
anekdotin afdb9eb4e0 feat: service calendar UX, alert button, stats, auto delivery fixes, and more
- Service calendar: remove manual label input (auto-generates as "Type - Name"),
  add quick time buttons (7am/9am/11am/1pm/3pm), click-to-highlight date cell,
  orange Add Event button
- Alert button on customer profile always red (not conditional)
- Customer alert popup system (severity levels, confirm-to-dismiss for critical)
- Auto delivery finalize: async submit guards, race condition and null-check fixes
- Tank estimation: gallons-to-fill stat, K-factor slider hidden from non-admins,
  last fill / days-since-last-fill stat boxes
- Auto page: removed Confidence column (never meaningfully updates)
- Stats: 4-month chart on home, full-year weekly stats page, customer signups graph
- Delivery map: quick-date buttons, All Eligible mode, zip padding fix
- Ticket: past deliveries limit + a-/wc- prefix, 2-page print fix
- Address checker: OSM false-street fix, zip capture, street manager admin page
- Customer create: quick-town buttons for 15 service area towns
- Customer profile: map pin with popup
- Sidebar: Stats section, admin streets link

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 13:40:43 -04:00

41 lines
1.1 KiB
Docker

FROM node:20.11.1 AS builder
ENV VITE_BASE_URL="http://192.168.1.204:9610"
ENV VITE_AUTO_URL="http://192.168.1.204:9614"
ENV VITE_MONEY_URL="http://192.168.1.204:9613"
ENV VITE_AUTHORIZE_URL="http://192.168.1.204:9616"
ENV VITE_VOIPMS_URL="http://192.168.1.204:9617"
ENV VITE_SERVICE_URL="http://192.168.1.204:9615"
ENV VITE_ADDRESS_CHECKER_URL="http://192.168.1.204:9618"
ENV VITE_SCRAPER_URL="http://192.168.1.204:9619"
ENV VITE_COMPANY_ID='1'
WORKDIR /app
COPY package.json ./
# --- THE FIX IS HERE ---
# 1. Install ALL dependencies (including devDependencies like vue-tsc)
RUN npm install
# 2. Copy the rest of your source code
COPY . .
# 3. Now run the build, which will succeed because vue-tsc is installed
RUN npm run build
# --- STAGE 2: Serve the built files with Nginx ---
FROM nginx:stable-alpine
# Copy the static files from the 'builder' stage
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy your custom Nginx configuration
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
# Tell the world that port 80 is now listening
EXPOSE 80
# Start Nginx when the container launches
CMD ["nginx", "-g", "daemon off;"]