@ -1,19 +1,19 @@
|
||||
FROM fascinated/docker-images:node-pnpm-latest
|
||||
|
||||
# Set the working directory to /app
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the current directory contents into the container at /app
|
||||
COPY . /app
|
||||
|
||||
# Install any needed packages specified in package.json
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy root package.json and lockfile
|
||||
COPY package.json ./
|
||||
COPY pnpm-lock.yaml ./
|
||||
|
||||
# Copy the node package.json
|
||||
COPY apps/node/package.json ./apps/node/package.json
|
||||
|
||||
RUN pnpm install
|
||||
|
||||
# Make port 3000 available to the world outside this container
|
||||
|
||||
# Copy app source
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Define environment variable
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Run app.js when the container launches
|
||||
CMD ["pnpm", "start"]
|
||||
|
||||
CMD [ "nnpm", "apps/node/index.js" ]
|
@ -12,9 +12,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.6.1",
|
||||
"dotenv": "^16.3.1",
|
||||
"express": "^4.18.2",
|
||||
"server": "workspace:*",
|
||||
"utils": "workspace:*",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^5.2.2"
|
||||
"typescript": "^5.2.2",
|
||||
"utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,19 @@
|
||||
FROM fascinated/docker-images:node-pnpm-latest
|
||||
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY ./apps/proxy .
|
||||
ENV PORT=3000
|
||||
|
||||
# Copy root package.json and lockfile
|
||||
COPY package.json ./
|
||||
COPY pnpm-lock.yaml ./
|
||||
|
||||
# Copy the proxy package.json
|
||||
COPY apps/proxy/package.json ./apps/proxy/package.json
|
||||
|
||||
RUN pnpm install
|
||||
|
||||
# Copy app source
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
CMD [ "pnpm", "start" ]
|
||||
|
||||
CMD [ "nnpm", "apps/proxy/index.js" ]
|
@ -12,9 +12,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.6.1",
|
||||
"dotenv": "^16.3.1",
|
||||
"express": "^4.18.2",
|
||||
"server": "workspace:*",
|
||||
"utils": "workspace:*",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^5.2.2"
|
||||
"typescript": "^5.2.2",
|
||||
"utils": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user