File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 1
- FROM node:22.11.0-slim
1
+ # Base image with corepack and pnpm enabled
2
+ FROM 310118226683.dkr.ecr.eu-west-1.amazonaws.com/node:23.3.0-slim
2
3
3
- # Create app directory
4
- WORKDIR /usr/src/app
4
+ RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
5
+ # Setup doppler
6
+ RUN (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh ) | sh
5
7
6
- # Copy package.json and package-lock.json
7
- COPY package*.json ./
8
+ # Set up pnpm environment
9
+ ENV PNPM_HOME="/pnpm"
10
+ ENV PATH="$PNPM_HOME:$PATH"
11
+ RUN corepack enable
8
12
9
- # Install app dependencies
10
- RUN npm ci
11
-
12
- # Bundle app source
13
+ # Set working directory
14
+ WORKDIR /app
13
15
COPY . .
14
16
15
- # Build the TypeScript files
16
- RUN npm run build
17
+ RUN pnpm i
18
+ RUN pnpm run build
17
19
18
- # Expose port 8080
19
- EXPOSE 8080
20
+ # Expose the application port
21
+ EXPOSE 3002
20
22
21
- # Start the app
22
- CMD npm run start
23
+ # Start the application
24
+ CMD [ "pnpm" , " start" ]
You can’t perform that action at this time.
0 commit comments