Skip to content

Commit

Permalink
alpine & 100mb max
Browse files Browse the repository at this point in the history
  • Loading branch information
artifishvr committed May 28, 2024
1 parent d056754 commit a651d55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:lts
FROM node:lts-alpine
ENV NODE_ENV=production

RUN apt-get update && apt-get install -y ffmpeg
RUN apk --no-cache add ffmpeg

RUN npm install -g pnpm

Expand Down
2 changes: 1 addition & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const upload = multer({ dest: 'temp/' });
router.post('/', upload.single('uploaded_file'), async function (req, res, next) {
if (!req.file) return res.status(400).send('No file uploaded.');

if (req.file.size > 8000000) return res.status(400).send('File too large. Max 8MB.');
if (req.file.size > 100000000) return res.status(400).send('File too large. Max 100MB.');

const uploadid = crypto.randomUUID();

Expand Down

0 comments on commit a651d55

Please sign in to comment.