Skip to content

Commit ba9847c

Browse files
NGO NGUYEN VU HUYNGO NGUYEN VU HUY
NGO NGUYEN VU HUY
authored and
NGO NGUYEN VU HUY
committed
Update docker file
1 parent 25f16a1 commit ba9847c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM node:16.15.0
1+
FROM node:alpine
22
COPY ./ /app
33
WORKDIR /app
4-
5-
ENV WS_SECRET ""
4+
ARG WS_SECRET
5+
ENV WS_SECRET=$WS_SECRET
66

77
EXPOSE 3000
88

app.js

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ else
2929
}
3030
}
3131

32+
console.log(WS_SECRET);
33+
3234
var banned = require('./lib/utils/config').banned;
3335

3436
// Init http server

0 commit comments

Comments
 (0)