wip
This commit is contained in:
24
apps/api/Dockerfile.dev
Normal file
24
apps/api/Dockerfile.dev
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install bash for better shell capabilities
|
||||
RUN apk add --no-cache bash
|
||||
|
||||
# Copy root package.json and install dependencies
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
RUN find ./node_modules -name "ts-node-dev" -print || true # Debugging line
|
||||
|
||||
# Copy apps/api and packages for development
|
||||
COPY apps/api apps/api/
|
||||
COPY packages packages/
|
||||
COPY apps/api/tsconfig.json apps/api/
|
||||
COPY tsconfig.base.json ./
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 9229
|
||||
|
||||
# Command to run the NestJS application in development with hot-reloading
|
||||
# Run from the correct workspace context
|
||||
CMD ["npm", "run", "start:dev", "--workspace=api"]
|
||||
Reference in New Issue
Block a user