Files
band-management/apps/portal/dev.Dockerfile
bert.hausmans 1cb7674d52 refactor: align codebase with EventCrew domain and trim legacy band stack
- Update API: events, users, policies, routes, resources, migrations
- Remove deprecated models/resources (customers, setlists, invitations, etc.)
- Refresh admin app and docs; remove apps/band

Made-with: Cursor
2026-03-29 23:19:06 +02:00

26 lines
903 B
Docker

FROM node:lts
WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
COPY . .
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm i; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i; \
# Allow install without lockfile, so example works even without Node.js installed locally
else echo "Warning: Lockfile not found. It is recommended to commit lockfiles to version control." && yarn install; \
fi
# Note: Don't expose ports here, Compose will handle that for us
# Start vue.js in development mode based on the preferred package manager
CMD \
if [ -f yarn.lock ]; then yarn dev --host; \
elif [ -f package-lock.json ]; then npm run dev -- --host; \
elif [ -f pnpm-lock.yaml ]; then pnpm dev --host; \
else yarn dev --host; \
fi