Skip to content

Commit 64578a8

Browse files
Fix ci cd (#17)
1 parent 9f40fcb commit 64578a8

File tree

2 files changed

+2
-48
lines changed

2 files changed

+2
-48
lines changed

apps/api-gateway/Dockerfile

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -28,51 +28,5 @@ COPY --from=dev app/ .
2828

2929
USER node
3030

31-
# Command to run the application's 'dist/main' file with 'node'
32-
CMD ["node", "apps/api-gateway/dist/main"]
33-
34-
###########
35-
# WIP
36-
###########
37-
38-
# Use an official Node.js runtime as the base image. Base stage to have pnpm installed
39-
# FROM node:20.17-alpine AS base
40-
# ENV PNPM_HOME="/pnpm"
41-
# ENV PATH="$PNPM_HOME:$PATH"
42-
# RUN corepack enable pnpm
43-
44-
# DEFINING DEVELOPMENT STAGE
45-
# FROM base AS dev
46-
47-
# WORKDIR /app
48-
49-
# RUN pnpm fetch
50-
51-
# COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
52-
# COPY apps/api-gateway ./apps/api-gateway
53-
# COPY tooling ./tooling
54-
# COPY packages ./packages
5531

56-
# RUN pnpm install && \
57-
# pnpm -r build && \
58-
# pnpm i
59-
60-
61-
# RUN \
62-
# if [ "$NODE_ENV" = "production" ]; then \
63-
# corepack enable pnpm && pnpm prune --prod; \
64-
# fiq
65-
66-
67-
# DEFINING PRODUCTION STAGE
68-
# FROM base AS prod
69-
70-
# WORKDIR /app
71-
# COPY --from=dev --chown=node:node /app/apps/api-gateway/dist ./apps/api-gateway/dist
72-
# COPY --from=dev --chown=node:node /app/apps/api-gateway/node_modules ./apps/api-gateway/node_modules
73-
# COPY --from=dev --chown=node:node /app/node_modules ./node_modules
74-
75-
# USER node
76-
77-
# Command to run the application's 'dist/main' file with 'node'
78-
# CMD ["node", "apps/api-gateway/dist/main"]
32+
CMD ["node", "apps/api-gateway/dist/main"]

apps/api-gateway/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { AppModule } from './app.module';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
6-
await app.listen(3000);
6+
await app.listen(8080);
77
}
88
bootstrap();

0 commit comments

Comments
 (0)