Update Dockerfile

This commit is contained in:
Lee
2022-11-14 03:31:42 +00:00
parent 27532f4d2e
commit 7c5f636e7c
6 changed files with 64 additions and 8341 deletions

View File

@ -11,9 +11,7 @@ import { createUser, getUser } from "../../../utils/helpers/userHelpers";
const pass = generateRandomPassword();
createUser("admin", pass).then((returned) => {
if (returned === true) {
console.log(
`Created admin account. Username: admin, Password: ${pass}, uploadKey: ${returned.uploadKey}`
);
console.log(`Created admin account. Username: admin, Password: ${pass}`);
}
});

View File

@ -38,7 +38,13 @@ export default function File(props) {
contentType = contentType.toLowerCase();
if (contentType.includes("image")) {
toShow = (
<Image alt={fileId} src={fileUrl} width={width} height={height}></Image>
<Image
alt={fileId}
src={fileUrl}
width={width}
height={height}
unoptimized
></Image>
);
} else if (contentType.includes("video")) {
toShow = <video alt={fileId} src={fileUrl} controls></video>;

View File

@ -33,7 +33,6 @@ export function createFileIO(dir, fileName, bytes) {
}
const fileLocation = dir + path.sep + fileName;
console.log(fileLocation);
fs.writeFile(
fileLocation,
bytes,