File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,16 +4,17 @@ WORKDIR /app
44
55COPY . .
66
7- RUN rm -rf screenshots/
7+ RUN rm -rf screenshots/ runme.sh
88
99RUN npm install --production
1010
1111RUN apk --no-cache add openssl
1212
1313RUN sh generate-cert.sh
1414
15- EXPOSE 80 443
15+ EXPOSE 8080 8443
1616
17+ USER 10001
1718
1819ENTRYPOINT ["node" , "./index.js" ]
1920CMD []
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ const sslOpts = {
5656 cert : require ( 'fs' ) . readFileSync ( 'fullchain.pem' ) ,
5757} ;
5858
59- http . createServer ( app ) . listen ( 80 ) ;
60- https . createServer ( sslOpts , app ) . listen ( 443 ) ;
59+ http . createServer ( app ) . listen ( 8080 ) ;
60+ https . createServer ( sslOpts , app ) . listen ( 8443 ) ;
6161
6262let calledClose = false ;
6363
Original file line number Diff line number Diff line change 1+ docker build -t amolde/http-https-echo .
2+ docker login
3+ docker push amolde/http-https-echo
You can’t perform that action at this time.
0 commit comments