YYou3 commited on
Commit
15702cf
·
1 Parent(s): 7bb8d6f

update port

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. index.ts +1 -1
Dockerfile CHANGED
@@ -4,6 +4,6 @@ WORKDIR "/app"
4
 
5
  COPY ./ ./
6
  RUN npm i
7
- EXPOSE 80
8
  ENTRYPOINT ["node"]
9
- CMD ["./index.ts", "--port", "80"]
 
4
 
5
  COPY ./ ./
6
  RUN npm i
7
+ EXPOSE 7860
8
  ENTRYPOINT ["node"]
9
+ CMD ["./index.ts", "--port", "7860"]
index.ts CHANGED
@@ -6,7 +6,7 @@ const argv: any = yargs(hideBin(process.argv)).parse();
6
 
7
  import { sandBox } from "./sandBox.ts";
8
 
9
- let port = argv.port || process.env.PORT || 8080;
10
  let app = express();
11
  app.use(policy);
12
 
 
6
 
7
  import { sandBox } from "./sandBox.ts";
8
 
9
+ let port = argv.port || process.env.PORT || 7860;
10
  let app = express();
11
  app.use(policy);
12