Skip to content

Commit dea7bac

Browse files
committed
sarturday
1 parent 86e8ce7 commit dea7bac

17 files changed

Lines changed: 8002 additions & 8 deletions

File tree

examples_new/docker/auth/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ FROM node:16
22
WORKDIR /app
33
COPY . .
44
RUN npm install
5-
EXPOSE 5000
6-
ENTRYPOINT ["node", "./src/app.js"]
5+
EXPOSE 3000
6+
CMD ["npm","start"]

examples_new/docker/auth/src/chronos-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path');
22
require('dotenv').config({
3-
path: path.resolve(__dirname, '../../.env'),
3+
path: path.resolve(__dirname, '../.env'),
44
});
55

66
const chronosConfig = {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

examples_new/docker/client/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@ FROM node:16
22
WORKDIR /app
33
COPY . .
44
RUN npm install
5-
RUN npm run build
6-
EXPOSE 3000
7-
EXPOSE 8000
8-
CMD ["node", "server.js"]
5+
EXPOSE 5000
6+
CMD ["npm", "run", "dev"]

examples_new/docker/client/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import react from '@vitejs/plugin-react';
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7-
server: { open: true, port: 5000 },
7+
server: { open: false, port: 5000, host: '0.0.0.0' },
88
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM node:16
2+
WORKDIR /app
3+
COPY . .
4+
RUN npm install
5+
EXPOSE 3003
6+
CMD ["npm","start"]

0 commit comments

Comments
 (0)