From e3e81e2ff917e4d3b72a09b00c4763bf0923d9c6 Mon Sep 17 00:00:00 2001 From: muhammadvadud Date: Tue, 4 Nov 2025 03:51:57 +0500 Subject: [PATCH] Fix typo --- Dockerfile | 16 +++------------- stack.yaml | 4 +--- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 155eb78..f08a1a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,13 @@ FROM node:20-alpine AS builder - WORKDIR /app - COPY package*.json ./ RUN npm install --legacy-peer-deps - COPY . . RUN npm run build FROM node:20-alpine - WORKDIR /app -ENV NODE_ENV=production -ENV PORT=3000 - -COPY --from=builder /app/package*.json ./ -COPY --from=builder /app/.next ./.next -COPY --from=builder /app/public ./public -COPY --from=builder /app/node_modules ./node_modules - +COPY --from=builder /app/dist ./dist +RUN npm install -g serve EXPOSE 3000 -CMD ["npm", "start"] +CMD ["serve", "-s", "dist"] diff --git a/stack.yaml b/stack.yaml index f28df13..818d468 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,12 +1,10 @@ version: "3.9" services: - simple-travel-frontend: + simple-travel-front-admin: image: muhammadvadud/simple-travel-front-admin:latest ports: - "5263:3000" - env_file: - - .env deploy: replicas: 2 restart_policy: