mirror of
https://github.com/danielvici/tool-website.git
synced 2026-01-16 23:01:26 +00:00
fix errors
This commit is contained in:
@@ -3,15 +3,13 @@ WORKDIR /app
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --only=production
|
RUN npm ci --only=production
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
# Debug + Verify
|
RUN ls -la dist/tools-website && ls -la dist/tools-website/browser
|
||||||
RUN ls -la dist/ && ls -la dist/tools-website/ || echo "FEHLER: dist/tool-website nicht gefunden"
|
|
||||||
|
|
||||||
FROM node:22-alpine
|
FROM node:22-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN npm install -g serve@14
|
RUN npm install -g serve@14
|
||||||
# Explizit korrekten Pfad kopieren
|
|
||||||
COPY --from=builder /app/dist/tools-website ./dist/tools-website
|
COPY --from=builder /app/dist/tools-website ./dist/tools-website
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["serve", "-s", "dist/tools-website", "-l", "3000"]
|
CMD ["serve", "-s", "dist/tools-website/browser", "-l", "3000"]
|
||||||
|
|||||||
Reference in New Issue
Block a user