Fix typo
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,23 +1,13 @@
|
|||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install --legacy-peer-deps
|
RUN npm install --legacy-peer-deps
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
COPY --from=builder /app/dist ./dist
|
||||||
ENV PORT=3000
|
RUN npm install -g serve
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["npm", "start"]
|
CMD ["serve", "-s", "dist"]
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
version: "3.9"
|
version: "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
simple-travel-frontend:
|
simple-travel-front-admin:
|
||||||
image: muhammadvadud/simple-travel-front-admin:latest
|
image: muhammadvadud/simple-travel-front-admin:latest
|
||||||
ports:
|
ports:
|
||||||
- "5263:3000"
|
- "5263:3000"
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
restart_policy:
|
restart_policy:
|
||||||
|
|||||||
Reference in New Issue
Block a user