Docker image is now working, updated the get key to hash the key

This commit is contained in:
subnub
2020-05-14 22:10:15 -04:00
parent 6b9995a399
commit e96d8a5b27
3 changed files with 13 additions and 4 deletions
+3 -2
View File
@@ -10,6 +10,7 @@ COPY . .
RUN npm run build
EXPOSE 8000
EXPOSE 8080
EXPOSE 3000
RUN npm run start
CMD [ "npm", "run", "start"]
+5 -1
View File
@@ -6,8 +6,12 @@ const getKey = async() => {
if (process.env.KEY) {
// For Docker
const password = process.env.KEY;
env.key = process.env.KEY
env.key = crypto.createHash("md5").update(password).digest("hex");
console.log("Docker Key", env.key);
} else if (process.env.NODE_ENV === "production") {
+5 -1
View File
@@ -7,7 +7,11 @@ const getKey = async() => {
if (process.env.KEY) {
// For Docker
env.key = process.env.KEY
const password = process.env.KEY;
env.key = password;
console.log("Docker Key", env.key);
} else if (process.env.NODE_ENV) {